Spaces:
Runtime error
Runtime error
Update network_fix.js
Browse files- network_fix.js +1 -7
network_fix.js
CHANGED
|
@@ -56,13 +56,7 @@ function applyAdvancedFixes() {
|
|
| 56 |
const { setGlobalDispatcher, Agent } = require('undici');
|
| 57 |
const dispatcher = new Agent({
|
| 58 |
connect: {
|
| 59 |
-
servername: target_domain
|
| 60 |
-
lookup: (hostname, options, callback) => {
|
| 61 |
-
const isDiscord = hostname.includes('discord.com') || hostname.includes('discordapp.com') || hostname.includes('dis.gd');
|
| 62 |
-
const isGateway = hostname.includes('discord.gg');
|
| 63 |
-
const target = (isDiscord && !isGateway) ? target_domain : hostname;
|
| 64 |
-
dns.lookup(target, callback);
|
| 65 |
-
}
|
| 66 |
},
|
| 67 |
pipelining: 1,
|
| 68 |
keepAliveTimeout: 30000
|
|
|
|
| 56 |
const { setGlobalDispatcher, Agent } = require('undici');
|
| 57 |
const dispatcher = new Agent({
|
| 58 |
connect: {
|
| 59 |
+
servername: target_domain
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
},
|
| 61 |
pipelining: 1,
|
| 62 |
keepAliveTimeout: 30000
|