You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For embedded server the opt.DontListen also blocks participating in a cluster.
We are trying to run embedded nats server as a cluster node only (no external access for clients) so we need to prevent listen for clients. We still need to be able to configure things like cluster and monitor and websocket and so on.
Expected behavior
opts.DontListen is expected to prevent the server from listening for clients (to be able to use InProcess connection instead).
Is there any other way to run the server with other services configured but without allowing clients to connect?
Server and client version
tested with nats-server v2.10.11 and inprocess client
Host environment
linux
Steps to reproduce
Running this code will in log show '[INF] Listening for route connections on 127.0.0.1:4248' and port 4248 is open
However, uncommenting the DontListen and running same code will not open port 4248 and nothing in log.
Observed behavior
For embedded server the opt.DontListen also blocks participating in a cluster.
We are trying to run embedded nats server as a cluster node only (no external access for clients) so we need to prevent listen for clients. We still need to be able to configure things like cluster and monitor and websocket and so on.
Expected behavior
opts.DontListen is expected to prevent the server from listening for clients (to be able to use InProcess connection instead).
Is there any other way to run the server with other services configured but without allowing clients to connect?
Server and client version
tested with nats-server v2.10.11 and inprocess client
Host environment
linux
Steps to reproduce
Running this code will in log show '[INF] Listening for route connections on 127.0.0.1:4248' and port 4248 is open
However, uncommenting the DontListen and running same code will not open port 4248 and nothing in log.
The text was updated successfully, but these errors were encountered: