We use https-proxy-agent to connect to server with a self signed certificate using their ip .
tls.connect with such a servername shows this warning :DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066
The servername should be removed only when using an ip address, as to not disable SNI when possible
thanks in advance.