diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-04-09 00:26:24 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-04-09 00:26:24 -0700 |
| commit | 59f40e202783dae6c83421e278608eeda7a97dbf (patch) | |
| tree | f25a8ff459f4905e732fa05943c81e704b87c4d0 /weed/command/volume.go | |
| parent | f6a7e79dc370dfb2e3fe5bff6a380afde95b9a7f (diff) | |
| download | seaweedfs-59f40e202783dae6c83421e278608eeda7a97dbf.tar.xz seaweedfs-59f40e202783dae6c83421e278608eeda7a97dbf.zip | |
volume: best effort to detect ip address
fix https://github.com/chrislusf/seaweedfs/issues/1264
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 68a0ce223..341111ecd 100644 --- a/weed/command/volume.go +++ b/weed/command/volume.go @@ -127,7 +127,7 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v } if *v.ip == "" { - *v.ip = "127.0.0.1" + *v.ip = util.DetectedHostAddress() } if *v.publicPort == 0 { |
