fix hardcoded proxypath

This commit is contained in:
wh1te909 2022-06-27 23:31:56 -07:00
parent 8d2511129c
commit ac2637d14b

View File

@ -376,7 +376,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
}