only set tunnel address if advertise is blank
This commit is contained in:
parent
05e62a2b95
commit
6222bc2a1e
@ -716,7 +716,11 @@ func (n *network) Connect() error {
|
||||
}
|
||||
|
||||
// set our internal node address
|
||||
// if advertise address is not set
|
||||
if len(n.options.Advertise) == 0 {
|
||||
n.node.address = n.Tunnel.Address()
|
||||
n.server.Init(server.Advertise(n.Tunnel.Address()))
|
||||
}
|
||||
|
||||
// initialize the tunnel to resolved nodes
|
||||
n.Tunnel.Init(
|
||||
|
Loading…
Reference in New Issue
Block a user