diff options
Diffstat (limited to 'src/rsync')
-rw-r--r-- | src/rsync/cmd/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |