mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 11:27:32 +08:00
volume: best effort to detect ip address
fix https://github.com/chrislusf/seaweedfs/issues/1264
This commit is contained in:
@@ -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