This was motivated by npm being unable to proxy through alpaca via npm set config http://localhost:3128 since node 17+ favours IPv6, whereas Go's net.Listen favours IPv4 when a hostname is supplied.
This PR performs a hostname lookup and detects the networks (tcp4/tcp6) for all returned IPs.
This was motivated by npm being unable to proxy through alpaca via
npm set config http://localhost:3128
since node 17+ favours IPv6, whereas Go'snet.Listen
favours IPv4 when a hostname is supplied.This PR performs a hostname lookup and detects the networks (tcp4/tcp6) for all returned IPs.