From 406efffa74eadb44826e4b464dc2fbabdddf72c4 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Wed, 11 Nov 2015 22:54:21 +0900 Subject: *: add global listen port configuration if port < 0, gobgpd won't listen on tcp:179 Signed-off-by: ISHIDA Wataru --- gobgpd/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gobgpd') diff --git a/gobgpd/main.go b/gobgpd/main.go index de348021..f8632771 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -21,7 +21,6 @@ import ( "github.com/jessevdk/go-flags" "github.com/osrg/gobgp/config" ops "github.com/osrg/gobgp/openswitch" - "github.com/osrg/gobgp/packet" "github.com/osrg/gobgp/server" "io/ioutil" "log/syslog" @@ -152,7 +151,7 @@ func main() { configCh := make(chan config.BgpConfigSet) reloadCh := make(chan bool) - bgpServer := server.NewBgpServer(bgp.BGP_PORT) + bgpServer := server.NewBgpServer() if opts.Ops { m, err := ops.NewOpsConfigManager(bgpServer.GrpcReqCh) if err != nil { -- cgit v1.2.3