summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/server/server.go b/server/server.go
index 280f0d8e..6d9306a6 100644
--- a/server/server.go
+++ b/server/server.go
@@ -182,11 +182,7 @@ func (server *BgpServer) Serve() {
if g.Zebra.Url == "" {
g.Zebra.Url = "unix:/var/run/quagga/zserv.api"
}
- redists := make([]string, 0, len(g.Zebra.RedistributeRouteTypeList))
- for _, t := range g.Zebra.RedistributeRouteTypeList {
- redists = append(redists, t.RouteType)
- }
- err := server.NewZclient(g.Zebra.Url, redists)
+ err := server.NewZclient(g.Zebra.Url, g.Zebra.RedistributeRouteType)
if err != nil {
log.Error(err)
}