annoy arin also a bit

This commit is contained in:
HF 2023-03-19 00:32:22 +01:00
parent 016f6bf91a
commit cfa9fb5f03

View File

@ -210,7 +210,16 @@ export default async function whoisIp(
ip,
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 refCnt = 0;
while (refCnt < 5) {