ssue 59: Multi Ip Enviromment support + publicUrl is disregarded by

master
This commit is contained in:
Chris Lu
2013-12-02 22:58:27 -08:00
parent e449a4a517
commit eeeccf2f78
3 changed files with 5 additions and 4 deletions

View File

@@ -87,7 +87,7 @@ func runVolume(cmd *Command, args []string) bool {
glog.V(0).Infoln("Start Weed volume server", VERSION, "at http://"+*ip+":"+strconv.Itoa(*vport))
srv := &http.Server{
Addr: ":" + strconv.Itoa(*vport),
Addr: *ip + ":" + strconv.Itoa(*vport),
Handler: r,
ReadTimeout: (time.Duration(*vReadTimeout) * time.Second),
}