Skip to content

Commit 0ead512

Browse files
author
ffffwh
committed
fix _ #367: sched task with advertised NatsAddr instead of the BindAddr
(cherry picked from commit 2d15837)
1 parent 53cf2c1 commit 0ead512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agent.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func (a *Agent) clientConfig() (*uconf.ClientConfig, error) {
190190

191191
// Set up the HTTP advertise address
192192
conf.Node.HTTPAddr = fmt.Sprintf("%s:%d", a.config.BindAddr, a.config.Ports.HTTP) //a.config.AdvertiseAddrs.HTTP
193-
conf.Node.NatsAddr = fmt.Sprintf("%s:%d", a.config.BindAddr, a.config.Ports.Nats)
193+
conf.Node.NatsAddr = a.config.AdvertiseAddrs.Nats
194194

195195
conf.Version = a.config.Version
196196

0 commit comments

Comments
 (0)