aboutsummaryrefslogtreecommitdiff
path: root/weed/shell
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/shell
parent35c8ea495fd21f7f10343717a5e1275782b7cae0 (diff)
downloadseaweedfs-0128239c0f8829bb20edd1df257840dcbfa37c0e.tar.xz
seaweedfs-0128239c0f8829bb20edd1df257840dcbfa37c0e.zip
handle ipv6 addresses
Diffstat (limited to 'weed/shell')
-rw-r--r--weed/shell/commands.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/commands.go b/weed/shell/commands.go
index 5497e89cc..aef71b419 100644
--- a/weed/shell/commands.go
+++ b/weed/shell/commands.go
@@ -98,7 +98,7 @@ var _ = filer_pb.FilerClient(&CommandEnv{})
func (ce *CommandEnv) WithFilerClient(fn func(filer_pb.SeaweedFilerClient) error) error {
- filerGrpcAddress := fmt.Sprintf("%s:%d", ce.option.FilerHost, ce.option.FilerPort+10000)
+ filerGrpcAddress := util.JoinHostPort(ce.option.FilerHost, int(ce.option.FilerPort+10000))
return pb.WithGrpcFilerClient(filerGrpcAddress, ce.option.GrpcDialOption, fn)
}