summaryrefslogtreecommitdiffhomepage
path: root/table/path.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-25 10:41:09 +0000
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-27 10:32:42 +0000
commit43f3d009d63e7d4d354a2a8b87f5967f3135b74e (patch)
treea88b213affb0245544feeef7079d0d6909d816f0 /table/path.go
parent1cbebfd6a35ee67c0126e2d7410d68597f00cb1e (diff)
server: fix not to modify Transport.Config
modify Transport.State instead Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/path.go')
-rw-r--r--table/path.go2
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("::"))
}