Brozy123 commited on
Commit
8bb06e2
·
verified ·
1 Parent(s): 13226f0

Update network_fix.js

Browse files
Files changed (1) hide show
  1. 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