diff options
Diffstat (limited to 'gobgpd/main.go')
-rw-r--r-- | gobgpd/main.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go index b5d9ecfb..ca90ece7 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -214,8 +214,10 @@ func main() { log.Fatalf("failed to set zebra config: %s", err) } } - if err := bgpServer.SetCollector(newConfig.Collector); err != nil { - log.Fatalf("failed to set collector config: %s", err) + if len(newConfig.Collector.Config.Url) > 0 { + if err := bgpServer.StartCollector(&newConfig.Collector.Config); err != nil { + log.Fatalf("failed to set collector config: %s", err) + } } if err := bgpServer.SetRpkiConfig(newConfig.RpkiServers); err != nil { log.Fatalf("failed to set rpki config: %s", err) |