mirror of
https://github.com/Milxnor/Cobalt.git
synced 2026-01-13 02:22:22 +01:00
proxy support, how to connect to mm
This commit is contained in:
@@ -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"))
|
||||
|
||||
@@ -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";
|
||||
|
||||
18
README.md
18
README.md
@@ -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>
|
||||
<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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user