aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer.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.go
parent35c8ea495fd21f7f10343717a5e1275782b7cae0 (diff)
downloadseaweedfs-0128239c0f8829bb20edd1df257840dcbfa37c0e.tar.xz
seaweedfs-0128239c0f8829bb20edd1df257840dcbfa37c0e.zip
handle ipv6 addresses
Diffstat (limited to 'weed/command/filer.go')
-rw-r--r--weed/command/filer.go2
1 files changed, 1 insertions, 1 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