diff --git a/agent/agent.go b/agent/agent.go index 6e83102..8938272 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -327,7 +327,7 @@ func (a *Agent) setupNatsOptions() []nats.Option { opts = append(opts, nats.RetryOnFailedConnect(true)) opts = append(opts, nats.MaxReconnects(-1)) opts = append(opts, nats.ReconnectBufSize(-1)) - opts = append(opts, nats.ProxyPath("natsws")) + opts = append(opts, nats.ProxyPath(a.NatsProxyPath)) return opts }