diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-04-18 15:20:20 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-04-18 15:20:20 -0700 |
| commit | 767f14dfcd0ec65a03f3c9029a8080e062de1c24 (patch) | |
| tree | 7ce2f7d855361b2d28cbb77e80104b6ecef6a836 /weed/command/volume.go | |
| parent | 076c8bd3bcb6f76c84a8df50aff923d493a6bb9d (diff) | |
| download | seaweedfs-767f14dfcd0ec65a03f3c9029a8080e062de1c24.tar.xz seaweedfs-767f14dfcd0ec65a03f3c9029a8080e062de1c24.zip | |
master, volume default to detected host
Diffstat (limited to 'weed/command/volume.go')
| -rw-r--r-- | weed/command/volume.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go index 936998d82..eab24ca97 100644 --- a/weed/command/volume.go +++ b/weed/command/volume.go @@ -57,7 +57,7 @@ func init() { cmdVolume.Run = runVolume // break init cycle v.port = cmdVolume.Flag.Int("port", 8080, "http listen port") v.publicPort = cmdVolume.Flag.Int("port.public", 0, "port opened to public") - v.ip = cmdVolume.Flag.String("ip", "", "ip or server name") + v.ip = cmdVolume.Flag.String("ip", util.DetectedHostAddress(), "ip or server name") v.publicUrl = cmdVolume.Flag.String("publicUrl", "", "Publicly accessible address") v.bindIp = cmdVolume.Flag.String("ip.bind", "0.0.0.0", "ip address to bind to") v.masters = cmdVolume.Flag.String("mserver", "localhost:9333", "comma-separated master servers") |
