mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
ensure non empty volume publicUrl
This commit is contained in:
parent
e0d8259d98
commit
3b1b955fc5
|
@ -98,6 +98,9 @@ func runVolume(cmd *Command, args []string) bool {
|
||||||
if *v.ip == "" {
|
if *v.ip == "" {
|
||||||
*v.ip = "127.0.0.1"
|
*v.ip = "127.0.0.1"
|
||||||
}
|
}
|
||||||
|
if *v.publicUrl == "" {
|
||||||
|
*v.publicUrl = *v.ip + ":" + *v.port
|
||||||
|
}
|
||||||
|
|
||||||
if *v.adminPort == 0 {
|
if *v.adminPort == 0 {
|
||||||
*v.adminPort = *v.port
|
*v.adminPort = *v.port
|
||||||
|
|
Loading…
Reference in a new issue