diff options
Diffstat (limited to 'table/path.go')
-rw-r--r-- | table/path.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/table/path.go b/table/path.go index 48712610..cefe974f 100644 --- a/table/path.go +++ b/table/path.go @@ -161,7 +161,7 @@ func (path *Path) UpdatePathAttrs(global *config.Global, peer *config.Neighbor) return } - localAddress := net.ParseIP(peer.Transport.Config.LocalAddress) + localAddress := net.ParseIP(peer.Transport.State.LocalAddress) isZero := func(ip net.IP) bool { return ip.Equal(net.ParseIP("0.0.0.0")) || ip.Equal(net.ParseIP("::")) } |