Spaces:
Runtime error
Runtime error
Update network_fix.js
Browse files- network_fix.js +1 -0
network_fix.js
CHANGED
|
@@ -85,6 +85,7 @@ function applyAdvancedFixes() {
|
|
| 85 |
let targetOpts = { ...opts };
|
| 86 |
if (isDiscord(opts.hostname) && !isAsset(opts.hostname)) {
|
| 87 |
console.log(`[NetworkFix] Hijacking undici connection: ${opts.hostname} -> ${target_domain}`);
|
|
|
|
| 88 |
targetOpts.servername = target_domain;
|
| 89 |
}
|
| 90 |
|
|
|
|
| 85 |
let targetOpts = { ...opts };
|
| 86 |
if (isDiscord(opts.hostname) && !isAsset(opts.hostname)) {
|
| 87 |
console.log(`[NetworkFix] Hijacking undici connection: ${opts.hostname} -> ${target_domain}`);
|
| 88 |
+
targetOpts.hostname = target_domain;
|
| 89 |
targetOpts.servername = target_domain;
|
| 90 |
}
|
| 91 |
|