Skip to content

Commit e99b694

Browse files
authored
make gobgp grpc server listen only nodeip and 127.0.0.1 (#649)
Fixes #640
1 parent 62d0e86 commit e99b694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controllers/routing/network_routes_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ func (nrc *NetworkRoutingController) startBgpServer() error {
730730
nrc.bgpServer = gobgp.NewBgpServer()
731731
go nrc.bgpServer.Serve()
732732

733-
g := bgpapi.NewGrpcServer(nrc.bgpServer, ":50051")
733+
g := bgpapi.NewGrpcServer(nrc.bgpServer, nrc.nodeIP.String()+":50051"+","+"127.0.0.1:50051")
734734
go g.Serve()
735735

736736
var localAddressList []string

0 commit comments

Comments
 (0)