Use peerAddress as the thing to listen on

This commit is contained in:
Asim Aslam 2019-10-03 18:35:54 +01:00
parent d5658ab0b0
commit 3c6b6553fb

View File

@ -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),