Compare commits

...

6 Commits
gui ... patch-3

Author SHA1 Message Date
Beat YT
d7ac4829e9
Remove auth token ! 2024-02-17 20:00:59 -05:00
mc
49bf0a8c35
Merge pull request #2 from Beat-YT/patch-2
Events not fully intercepted
2024-02-14 10:49:24 +01:00
Beat YT
e9a26e912c
Events not fully intercepted 2024-02-13 21:24:15 -05:00
mc
9233bb234a
Merge pull request #1 from Beat-YT/patch-1
don't let epic know things
2024-02-11 21:12:45 +01:00
Beat YT
a8e6440bcd
Update Proxy.cs 2024-02-11 15:10:35 -05:00
Beat YT
0cbb5929ec
Update Proxy.cs 2024-02-11 15:03:08 -05:00

View File

@ -137,6 +137,23 @@ namespace Partypacker.Net
MainWindow.settings.GetValue("Launcher", "apiurl") ?? "https://partypack.mcthe.dev";
#endif
// dont let epic know things
if (oSession.HostnameIs("datarouter.ol.epicgames.com")) {
if (oSession.HTTPMethodIs("CONNECT"))
{
oSession["x-replywithtunnel"] = "FortniteTunnel";
return;
}
oSession.utilCreateResponseAndBypassServer();
oSession.responseCode = 204;
return;
} else if (oSession.PathAndQuery.StartsWith("/api/v2/games/FNFestival/leaderboards/") || oSession.PathAndQuery.StartsWith("/api/v1/leaderboards/FNFestival/")) {
oSession.utilCreateResponseAndBypassServer();
oSession.responseCode = 404;
return;
}
if (oSession.PathAndQuery.Contains("/content/api/pages/fortnite-game")
|| oSession.HostnameIs("cdn.qstv.on.epicgames.com")
|| oSession.PathAndQuery.Contains("/master.blurl")
@ -151,6 +168,7 @@ namespace Partypacker.Net
}
oSession.RequestHeaders.Add("X-Partypack-Token", Token);
oSession.RequestHeaders.Remove("Authorization");
if (oSession.PathAndQuery.Contains("/master.blurl")
|| oSession.PathAndQuery.Contains("/main.blurl"))