aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_copy.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-09-07 16:43:54 -0700
committerChris Lu <chris.lu@gmail.com>2021-09-07 16:43:54 -0700
commit0128239c0f8829bb20edd1df257840dcbfa37c0e (patch)
tree4bf3d7a7ffc313d2c8a8547326204a632d48c4a4 /weed/command/filer_copy.go
parent35c8ea495fd21f7f10343717a5e1275782b7cae0 (diff)
downloadseaweedfs-0128239c0f8829bb20edd1df257840dcbfa37c0e.tar.xz
seaweedfs-0128239c0f8829bb20edd1df257840dcbfa37c0e.zip
handle ipv6 addresses
Diffstat (limited to 'weed/command/filer_copy.go')
-rw-r--r--weed/command/filer_copy.go2
1 files changed, 1 insertions, 1 deletions
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)