Skip to content

Hostname resolution happens too early in case of proxied websocket connections. #967

@GrafBlutwurst

Description

@GrafBlutwurst

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectSuspected defect such as a bug or regression

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions