proxy support, how to connect to mm

This commit is contained in:
Milxnor
2023-05-28 12:55:33 -04:00
parent e86a84dc10
commit 1f8261ab39
3 changed files with 20 additions and 6 deletions

View File

@@ -43,10 +43,10 @@ inline CURLcode CurlEasySetOptDetour(struct Curl_easy* data, CURLoption tag, ...
}
//Disable Proxy
if (tag == CURLOPT_PROXY)
/* if (tag == CURLOPT_PROXY)
{
result = CurlSetOpt_(data, tag, "");
}
} */
//URL redirection
else if (tag == CURLOPT_URL)
@@ -55,7 +55,7 @@ inline CURLcode CurlEasySetOptDetour(struct Curl_easy* data, CURLoption tag, ...
Uri uri = Uri::Parse(url);
// std::cout << "Path: " << uri.Path << '\n';
// std::cout << "URL: " << uri.Host << uri.Path << '\n';
#ifdef URL_HOST
if (uri.Host.ends_with(XOR("ol.epicgames.com"))

View File

@@ -99,6 +99,8 @@ DWORD WINAPI Main(LPVOID)
#ifndef URL_HOST
std::cout << "\n\n\n!!!!!!! URL_HOST IS NOT DEFINED !!!!!!!\n\n\n\n";
#else
std::cout << "Redirecting to " << URL_PROTOCOL << "://" << URL_HOST << ":" << URL_PORT << '\n';
#endif
std::cout << "Initializing Cobalt (made by Milxnor#3531).\n";

View File

@@ -14,7 +14,7 @@ Go to `settings.h` and change the variable `CobaltUsage` to `ECobaltUsage::Hybri
[Download LawinServerV1](https://github.com/Lawin0129/LawinServer) and run `install_packages.bat` and then `start.bat`.<br><br>
In Cobalt, change the mode to hybrid ([tutorial](https://github.com/Milxnor/Cobalt#enabling-hybrid)) and make sure `URL_HOST` is `127.0.0.1` (localhost) and `URL_PORT` is 3551 (default LawinServerV1 port) in `settings.h`.
## How to have fiddler and connect to XMPP
## How to have Fiddler and connect to XMPP and matchmaker
Thanks [Lawin](https://github.com/Lawin0129) for this method.<br>
Go to the `CloudStorage` folder in your LawinServerV1 and open `DefaultEngine.ini` and change it to
@@ -31,7 +31,7 @@ Protocol=ws
bUseSSL=false
```
Put this into your fiddler script.
Put this into your FiddlerScript.
```
import Fiddler;
@@ -43,6 +43,18 @@ class Handlers
{
oSession.oRequest.headers.UriScheme = "https";
}
if (oSession.hostname.StartsWith("fortnite-matchmaking"))
{
oSession.oRequest.headers.UriScheme = "https";
}
if (oSession.hostname.StartsWith("fortnite-mm"))
{
oSession.oRequest.headers.UriScheme = "https";
}
}
static function OnBeforeResponse(oSession: Session) {
oSession.utilReplaceInResponse("wss://", "ws://");
}
}
```
@@ -51,7 +63,7 @@ class Handlers
Go to your Win64 folder of latest, replace `FortniteClient-Win64-Shipping_BE.exe`, `FortniteClient-Win64-Shipping_EAC.exe`, and `FortniteClient-Win64-Shipping_EAC_EOS.exe` with `FortniteClient-Win64-Shipping.exe`.<br>
![image](https://github.com/Milxnor/Cobalt/assets/84999745/aca1fee6-6751-48c7-b81d-70618e5a46f5)<br>
Launch fiddler, and when you get the error, inject Cobalt and then you should load in lobby a few seconds later.
Launch Fiddler, and when you get the error, inject Cobalt and then you should load in lobby a few seconds later.
# Credits