Use peerAddress as the thing to listen on
This commit is contained in:
parent
d5658ab0b0
commit
3c6b6553fb
@ -106,7 +106,7 @@ func newNetwork(opts ...Option) Network {
|
|||||||
// server is network server
|
// server is network server
|
||||||
server := server.NewServer(
|
server := server.NewServer(
|
||||||
server.Id(options.Id),
|
server.Id(options.Id),
|
||||||
server.Address(address),
|
server.Address(peerAddress),
|
||||||
server.Advertise(advertise),
|
server.Advertise(advertise),
|
||||||
server.Name(options.Name),
|
server.Name(options.Name),
|
||||||
server.Transport(tunTransport),
|
server.Transport(tunTransport),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user