Spaces:
Runtime error
Runtime error
Update network_fix.js
Browse files- network_fix.js +3 -3
network_fix.js
CHANGED
|
@@ -17,7 +17,7 @@ let current_index = 0;
|
|
| 17 |
function applyAdvancedFixes() {
|
| 18 |
console.log("[*] NetworkFix: Initializing Domain Hijacking...");
|
| 19 |
|
| 20 |
-
dns.setDefaultResultOrder('
|
| 21 |
|
| 22 |
// Patch dns.lookup to be more flexible
|
| 23 |
const _oldLookup = dns.lookup;
|
|
@@ -25,9 +25,9 @@ function applyAdvancedFixes() {
|
|
| 25 |
let opt = options;
|
| 26 |
if (typeof opt === 'function') {
|
| 27 |
callback = opt;
|
| 28 |
-
opt = {};
|
| 29 |
}
|
| 30 |
-
return _oldLookup(hostname, opt || {}, callback);
|
| 31 |
};
|
| 32 |
|
| 33 |
// Connectivity Diagnostic
|
|
|
|
| 17 |
function applyAdvancedFixes() {
|
| 18 |
console.log("[*] NetworkFix: Initializing Domain Hijacking...");
|
| 19 |
|
| 20 |
+
dns.setDefaultResultOrder('ipv6first');
|
| 21 |
|
| 22 |
// Patch dns.lookup to be more flexible
|
| 23 |
const _oldLookup = dns.lookup;
|
|
|
|
| 25 |
let opt = options;
|
| 26 |
if (typeof opt === 'function') {
|
| 27 |
callback = opt;
|
| 28 |
+
opt = { family: 6 };
|
| 29 |
}
|
| 30 |
+
return _oldLookup(hostname, opt || { family: 6 }, callback);
|
| 31 |
};
|
| 32 |
|
| 33 |
// Connectivity Diagnostic
|