diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/server.go | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/server/server.go b/server/server.go index 9861ee7b..78744db2 100644 --- a/server/server.go +++ b/server/server.go @@ -167,6 +167,16 @@ func (server *BgpServer) Serve() { } } + if g.Zebra.Enabled == true { + if g.Zebra.Url == "" { + g.Zebra.Url = "unix:/var/run/quagga/zserv.api" + } + err := server.NewZclient(g.Zebra.Url) + if err != nil { + log.Error(err) + } + } + senderCh := make(chan *SenderMsg, 1<<16) go func(ch chan *SenderMsg) { for { @@ -238,7 +248,7 @@ func (server *BgpServer) Serve() { var zapiMsgCh chan *zebra.Message if server.zclient != nil { - zapiMsgCh = server.zclient.Recieve() + zapiMsgCh = server.zclient.Receive() } for { var firstMsg *SenderMsg |