Brozy123 commited on
Commit
4004a27
·
verified ·
1 Parent(s): e31ada2

Update network_fix.js

Browse files
Files changed (1) hide show
  1. network_fix.js +8 -0
network_fix.js CHANGED
@@ -35,6 +35,14 @@ function applyAdvancedFixes() {
35
 
36
  const target_domain = DOMAINS[current_index];
37
  console.log(`[*] NetworkFix: Forcing traffic through ${target_domain}...`);
 
 
 
 
 
 
 
 
38
 
39
  // Patch https.request to hijack all Discord-related domains
40
  const _oldRequest = https.request;
 
35
 
36
  const target_domain = DOMAINS[current_index];
37
  console.log(`[*] NetworkFix: Forcing traffic through ${target_domain}...`);
38
+
39
+ dns.resolve4(target_domain, (err, addresses) => {
40
+ if (!err && addresses.length > 0) {
41
+ console.log(`[*] NetworkFix: ${target_domain} resolved to ${addresses[0]}`);
42
+ } else {
43
+ console.log(`[!] NetworkFix: Failed to resolve ${target_domain}: ${err?.message}`);
44
+ }
45
+ });
46
 
47
  // Patch https.request to hijack all Discord-related domains
48
  const _oldRequest = https.request;