From d01c1586b9b1a25965448f9e15a05d94f2b22a5f Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sun, 6 Dec 2015 10:20:09 +0900 Subject: 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 --- table/destination.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'table/destination.go') 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, } -- cgit v1.2.3