diff options
Diffstat (limited to 'gobgpd')
-rw-r--r-- | gobgpd/main.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go index 1b5cd959..4f44e328 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -184,6 +184,14 @@ func main() { if policyConfig == nil { policyConfig = &newConfig.Policy + // FIXME: Currently the following code + // is safe because the above + // SetRpkiConfig will be blocked + // because the length of rpkiConfigCh + // is zero. So server.GlobalRib is + // allocated before the above + // SetPolicy. But this should be + // handled more cleanly. if err := bgpServer.SetPolicy(newConfig.Policy); err != nil { log.Fatal(err) } |