mirror of
https://bitbucket.org/anticensority/antizapret-pac-generator-light.git
synced 2024-11-25 22:56:05 +03:00
Do not resolve IPv4/v6 addresses to prevent slowdown
This commit is contained in:
parent
89ca209c91
commit
adcb263f4a
@ -86,7 +86,11 @@ echo " if (domains.length < 10) return \"DIRECT\"; // list is broken
|
|||||||
var curarr = domains[curzone][curhost.length];
|
var curarr = domains[curzone][curhost.length];
|
||||||
}
|
}
|
||||||
|
|
||||||
var oip = dnsResolve(host);
|
var oip = false;
|
||||||
|
if (! host.match(/^[0-9a-fA-F:.]*$/)) {
|
||||||
|
// Do not resolve IPv4/v6 addresses to prevent slowdown
|
||||||
|
oip = dnsResolve(host);
|
||||||
|
}
|
||||||
var iphex = \"\";
|
var iphex = \"\";
|
||||||
if (oip) {
|
if (oip) {
|
||||||
iphex = oip.toString().split(\".\");
|
iphex = oip.toString().split(\".\");
|
||||||
|
Loading…
Reference in New Issue
Block a user