Skip to content

Commit

Permalink
use JoinHostPort for GRPC listen address
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Larsson <who+github@cnackers.org>
  • Loading branch information
whooo authored and aauren committed Mar 11, 2023
1 parent 39bd27f commit 7bd940e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/routing/network_routes_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ func (nrc *NetworkRoutingController) startBgpServer(grpcServer bool) error {

if grpcServer {
nrc.bgpServer = gobgp.NewBgpServer(
gobgp.GrpcListenAddress(nrc.primaryIP.String() + ":50051" + "," + "127.0.0.1:50051"))
gobgp.GrpcListenAddress(net.JoinHostPort(nrc.primaryIP.String(), "50051") + "," + "127.0.0.1:50051"))
} else {
nrc.bgpServer = gobgp.NewBgpServer()
}
Expand Down

0 comments on commit 7bd940e

Please sign in to comment.