Fix empty public url
This commit is contained in:
@@ -101,13 +101,13 @@ func runVolume(cmd *Command, args []string) bool {
|
||||
if *v.ip == "" {
|
||||
*v.ip = "127.0.0.1"
|
||||
}
|
||||
if *v.publicUrl == "" {
|
||||
*v.publicUrl = *v.ip + ":" + strconv.Itoa(*v.port)
|
||||
}
|
||||
|
||||
if *v.publicPort == 0 {
|
||||
*v.publicPort = *v.port
|
||||
}
|
||||
if *v.publicUrl == "" {
|
||||
*v.publicUrl = *v.ip + ":" + strconv.Itoa(*v.publicPort)
|
||||
}
|
||||
isSeperatedPublicPort := *v.publicPort != *v.port
|
||||
|
||||
volumeMux := http.NewServeMux()
|
||||
|
||||
Reference in New Issue
Block a user