diff options
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/filer.go | 2 | ||||
| -rw-r--r-- | weed/command/filer_copy.go | 2 | ||||
| -rw-r--r-- | weed/command/server.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go index ddee0852c..b1237cc3f 100644 --- a/weed/command/filer.go +++ b/weed/command/filer.go @@ -134,7 +134,7 @@ func runFiler(cmd *Command, args []string) bool { go stats_collect.StartMetricsServer(*f.metricsHttpPort) - filerAddress := fmt.Sprintf("%s:%d", *f.ip, *f.port) + filerAddress := util.JoinHostPort(*f.ip, *f.port) startDelay := time.Duration(2) if *filerStartS3 { filerS3Options.filer = &filerAddress diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index 2cc0d245c..05aa96292 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -115,7 +115,7 @@ func runCopy(cmd *Command, args []string) bool { } filerGrpcPort := filerPort + 10000 - filerGrpcAddress := fmt.Sprintf("%s:%d", filerUrl.Hostname(), filerGrpcPort) + filerGrpcAddress := util.JoinHostPort(filerUrl.Hostname(), int(filerGrpcPort)) copy.grpcDialOption = security.LoadClientTLS(util.GetViper(), "grpc.client") masters, collection, replication, dirBuckets, maxMB, cipher, err := readFilerConfiguration(copy.grpcDialOption, filerGrpcAddress) diff --git a/weed/command/server.go b/weed/command/server.go index c784d90b9..b32d9d51e 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -194,7 +194,7 @@ func runServer(cmd *Command, args []string) bool { filerOptions.disableHttp = serverDisableHttp masterOptions.disableHttp = serverDisableHttp - filerAddress := fmt.Sprintf("%s:%d", *serverIp, *filerOptions.port) + filerAddress := util.JoinHostPort(*serverIp, *filerOptions.port) s3Options.filer = &filerAddress webdavOptions.filer = &filerAddress msgBrokerOptions.filer = &filerAddress |
