summaryrefslogtreecommitdiffhomepage
path: root/gobgpd
diff options
context:
space:
mode:
Diffstat (limited to 'gobgpd')
-rw-r--r--gobgpd/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go
index 89cd0cb8..9d96401b 100644
--- a/gobgpd/main.go
+++ b/gobgpd/main.go
@@ -46,6 +46,7 @@ func main() {
DisableStdlog bool `long:"disable-stdlog" description:"disable standard logging"`
EnableZapi bool `short:"z" long:"enable-zapi" description:"enable zebra api"`
ZapiURL string `long:"zapi-url" description:"specify zebra api url"`
+ RPKIServer string `long:"rpki-server" description:"specify rpki server url"`
}
_, err := flags.Parse(&opts)
if err != nil {
@@ -141,7 +142,7 @@ func main() {
reloadCh := make(chan bool)
go config.ReadConfigfileServe(opts.ConfigFile, configCh, reloadCh)
reloadCh <- true
- bgpServer := server.NewBgpServer(bgp.BGP_PORT)
+ bgpServer := server.NewBgpServer(bgp.BGP_PORT, opts.RPKIServer)
go bgpServer.Serve()
// start grpc Server