diff options
author | Ritu Sood <ritu.sood@intel.com> | 2020-06-02 10:31:33 -0700 |
---|---|---|
committer | Eric Multanen <eric.w.multanen@intel.com> | 2020-06-10 10:15:56 -0700 |
commit | f9af96c8fa24db7ce721f1210275f4ba34f4ac22 (patch) | |
tree | c8394884683cdf3dd6a9f06ace72920535aa0cb4 /src/ovnaction | |
parent | 6b072fae4535fa00956779aac636eddedc8d5455 (diff) |
Fix gRpc listen address
listen function doesn't work with ip address.
Binding on all interfaces
Issue-ID: MULTICLOUD-1019
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Change-Id: I57e1082d8823b349660e0fb207e29ccc9c91a762
Diffstat (limited to 'src/ovnaction')
-rw-r--r-- | src/ovnaction/cmd/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ovnaction/cmd/main.go b/src/ovnaction/cmd/main.go index 9e791cd1..a6b34923 100644 --- a/src/ovnaction/cmd/main.go +++ b/src/ovnaction/cmd/main.go @@ -50,9 +50,9 @@ func startGrpcServer() error { certFile := config.GetConfiguration().GrpcServerCert keyFile := config.GetConfiguration().GrpcServerKey - host, port := register.GetServerHostPort() + _, port := register.GetServerHostPort() - lis, err := net.Listen("tcp", fmt.Sprintf("%s:%d", host, port)) + lis, err := net.Listen("tcp", fmt.Sprintf(":%d", port)) if err != nil { log.Fatalf("Could not listen to port: %v", err) } |