summaryrefslogtreecommitdiffhomepage
path: root/gobgpd
diff options
context:
space:
mode:
Diffstat (limited to 'gobgpd')
-rw-r--r--gobgpd/main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go
index 204a068b..110718ef 100644
--- a/gobgpd/main.go
+++ b/gobgpd/main.go
@@ -169,7 +169,11 @@ func main() {
// start grpc Server
grpcServer := server.NewGrpcServer(opts.GrpcPort, bgpServer.GrpcReqCh)
- go grpcServer.Serve()
+ go func() {
+ if err := grpcServer.Serve(); err != nil {
+ log.Fatalf("failed to listen grpc port: %s", err)
+ }
+ }()
var bgpConfig *config.Bgp = nil
var policyConfig *config.RoutingPolicy = nil