1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00

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 := server.NewServer(
server.Id(options.Id),
server.Address(address),
server.Address(peerAddress),
server.Advertise(advertise),
server.Name(options.Name),
server.Transport(tunTransport),