Observed behavior
c.f. #913
The problem is that even with the isNoResolveHostnames option set, if the connection is proxied the actual tunneled connection to the NATS server happens by IP and not by hostname.
This can lead to issues in presence of a firewall as it requires both whitelisting of the domain/host as well as its IP.
Expected behavior
All connections should be done by hostname if isNoResolveHostnames is set.
Server and client version
I think only the library version matters here as the issue is purely client side. We're at 2.16.14
Host environment
No response
Steps to reproduce
Happens on any proxied websocket connection.