Fix empty public url

This commit is contained in:
chrislusf
2015-04-08 11:08:08 -07:00
parent 3ece066700
commit 71e9b302d4
2 changed files with 6 additions and 3 deletions

View File

@@ -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()