diff options
Diffstat (limited to 'server/zclient.go')
-rw-r--r-- | server/zclient.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/zclient.go b/server/zclient.go index 33875476..ba731cce 100644 --- a/server/zclient.go +++ b/server/zclient.go @@ -152,7 +152,7 @@ func handleZapiMsg(msg *zebra.Message, server *BgpServer) []*SenderMsg { case *zebra.IPRouteBody: pi := &table.PeerInfo{ AS: server.bgpConfig.Global.Config.As, - LocalID: server.bgpConfig.Global.Config.RouterId, + LocalID: net.ParseIP(server.bgpConfig.Global.Config.RouterId).To4(), } if b.Prefix != nil && len(b.Nexthops) > 0 && b.Type != zebra.ROUTE_KERNEL { |