summaryrefslogtreecommitdiffhomepage
path: root/table/path.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-12-06 10:20:09 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-12-29 14:47:06 +0900
commitd01c1586b9b1a25965448f9e15a05d94f2b22a5f (patch)
tree744609e474a9561dab792b60ab70d82696ab691e /table/path.go
parent58946b7924840f1effc993e95440266479c668d5 (diff)
config: use viper and support multiple configuration formats
// toml by default $ gobgpd -f gobgpd.toml // use -t to change configuration type $ gobgpd -t yaml -f gobgpd.yaml 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 bfc967d2..05144812 100644
--- a/table/path.go
+++ b/table/path.go
@@ -90,7 +90,7 @@ func (path *Path) UpdatePathAttrs(global *config.Global, peer *config.Neighbor)
return
}
- localAddress := peer.Transport.Config.LocalAddress
+ localAddress := net.ParseIP(peer.Transport.Config.LocalAddress)
if peer.Config.PeerType == config.PEER_TYPE_EXTERNAL {
// NEXTHOP handling
path.SetNexthop(localAddress)