summaryrefslogtreecommitdiffhomepage
path: root/table/destination.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/destination.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/destination.go')
-rw-r--r--table/destination.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/table/destination.go b/table/destination.go
index ca3a39f0..2577e7cb 100644
--- a/table/destination.go
+++ b/table/destination.go
@@ -103,8 +103,8 @@ func NewPeerInfo(g *config.Global, p *config.Neighbor) *PeerInfo {
return &PeerInfo{
AS: p.Config.PeerAs,
LocalAS: g.Config.As,
- LocalID: g.Config.RouterId,
- Address: p.Config.NeighborAddress,
+ LocalID: net.ParseIP(g.Config.RouterId).To4(),
+ Address: net.ParseIP(p.Config.NeighborAddress),
RouteReflectorClient: p.RouteReflector.Config.RouteReflectorClient,
RouteReflectorClusterID: id,
}