aboutsummaryrefslogtreecommitdiff
path: root/weed/command/server.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-03-12 15:32:51 -0800
committerChris Lu <chris.lu@gmail.com>2021-03-12 15:32:51 -0800
commit2a68ddb963d2ad3810b799487fa66059790fb105 (patch)
tree42ed3eff907a1a1e7b06aa35016943780b1dda61 /weed/command/server.go
parent5fbcaaf37ab6c7588950ca679dbc718c1c499234 (diff)
downloadseaweedfs-2a68ddb963d2ad3810b799487fa66059790fb105.tar.xz
seaweedfs-2a68ddb963d2ad3810b799487fa66059790fb105.zip
default to empty host to bind to tcp4 and tcp6
Diffstat (limited to 'weed/command/server.go')
-rw-r--r--weed/command/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/server.go b/weed/command/server.go
index a39802412..a9e1c94bb 100644
--- a/weed/command/server.go
+++ b/weed/command/server.go
@@ -50,7 +50,7 @@ var cmdServer = &Command{
var (
serverIp = cmdServer.Flag.String("ip", util.DetectedHostAddress(), "ip or server name")
- serverBindIp = cmdServer.Flag.String("ip.bind", "0.0.0.0", "ip address to bind to")
+ serverBindIp = cmdServer.Flag.String("ip.bind", "", "ip address to bind to")
serverTimeout = cmdServer.Flag.Int("idleTimeout", 30, "connection idle seconds")
serverDataCenter = cmdServer.Flag.String("dataCenter", "", "current volume server's data center name")
serverRack = cmdServer.Flag.String("rack", "", "current volume server's rack name")