change CLI option from publicIp to publicUrl

Now the publicUrl is free style text.
This commit is contained in:
chrislusf
2015-02-02 15:51:25 -08:00
parent cc724305b6
commit e381356af9
4 changed files with 16 additions and 33 deletions

View File

@@ -3,7 +3,6 @@ package weed_server
import (
"math/rand"
"net/http"
"strconv"
"time"
"github.com/chrislusf/weed-fs/go/glog"
@@ -23,13 +22,12 @@ type VolumeServer struct {
}
func NewVolumeServer(publicMux, adminMux *http.ServeMux, ip string,
port, adminPort int, publicIp string,
port, adminPort int, publicUrl string,
folders []string, maxCounts []int,
masterNode string, pulseSeconds int,
dataCenter string, rack string,
whiteList []string,
fixJpgOrientation bool) *VolumeServer {
publicUrl := publicIp + ":" + strconv.Itoa(port)
vs := &VolumeServer{
masterNode: masterNode,
pulseSeconds: pulseSeconds,