annoy arin also a bit
This commit is contained in:
parent
016f6bf91a
commit
cfa9fb5f03
|
@ -210,7 +210,16 @@ export default async function whoisIp(
|
||||||
ip,
|
ip,
|
||||||
host = null,
|
host = null,
|
||||||
) {
|
) {
|
||||||
let useHost = host || 'whois.iana.org';
|
let useHost;
|
||||||
|
if (!host) {
|
||||||
|
if (Math.random() > 0.5) {
|
||||||
|
useHost = 'whois.arin.net';
|
||||||
|
} else {
|
||||||
|
useHost = 'whois.iana.org';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
useHost = host;
|
||||||
|
}
|
||||||
let whoisResult = '';
|
let whoisResult = '';
|
||||||
let refCnt = 0;
|
let refCnt = 0;
|
||||||
while (refCnt < 5) {
|
while (refCnt < 5) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user