mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-06 03:57:48 +01:00
volume: best effort to detect ip address
fix https://github.com/chrislusf/seaweedfs/issues/1264
This commit is contained in:
1 parent
f6a7e79dc3
commit
59f40e2027
2 files changed
+26
-1
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user