let lookup = false;
switch (this.proxy.protocol) {
case 'socks4:':
case 'socks5h:': // this line is wrong, should be 'socks5:' instead
lookup = true;
break;
}
See urllib3/urllib3#1035,
Quote: In a proxy string, socks5h:// and socks4a:// mean that the hostname is
resolved by the SOCKS server, not the client
See urllib3/urllib3#1035,
Quote: In a proxy string, socks5h:// and socks4a:// mean that the hostname is
resolved by the SOCKS server, not the client