force IPv4 on whois

This commit is contained in:
HF 2023-05-30 23:12:24 +02:00
parent 7450c3c0f8
commit 8c6a048e1c

View File

@ -160,6 +160,7 @@ function singleWhoisQuery(
host,
port: WHOIS_PORT,
localAddress: OUTGOING_ADDRESS,
family: 4,
timeout: WHOIS_TIMEOUT,
}, () => socket.write(query + QUERY_SUFFIX));
socket.on('data', (chunk) => { data += chunk; });