aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRitu Sood <Ritu.Sood@intel.com>2020-06-12 00:45:41 +0000
committerGerrit Code Review <gerrit@onap.org>2020-06-12 00:45:41 +0000
commitdd6613ec4e4bbe79699f6b5802334f968dfb8306 (patch)
tree7c5432f5c70c484682a7364c032f16b8472e7bb9 /src
parentf868b3e8601c8b25675dfd372390a915ef298dca (diff)
parentf9af96c8fa24db7ce721f1210275f4ba34f4ac22 (diff)
Merge "Fix gRpc listen address"
Diffstat (limited to 'src')
-rw-r--r--src/ovnaction/cmd/main.go4
-rw-r--r--src/rsync/cmd/main.go4
2 files changed, 4 insertions, 4 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)
}
diff --git a/src/rsync/cmd/main.go b/src/rsync/cmd/main.go
index e62e0542..f46fa79b 100644
--- a/src/rsync/cmd/main.go
+++ b/src/rsync/cmd/main.go
@@ -43,9 +43,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)
}