aboutsummaryrefslogtreecommitdiff
path: root/go/weed
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2015-04-16 09:29:20 -0700
committerchrislusf <chris.lu@gmail.com>2015-04-16 09:29:20 -0700
commit67146ffa785fa35e216f603bcb80fb65c69f088c (patch)
tree7820c7a65beb5e29098f54a65f92d4b253836f34 /go/weed
parent53b663af358418d6b5198d8dfd51e35db4ebe671 (diff)
downloadseaweedfs-67146ffa785fa35e216f603bcb80fb65c69f088c.tar.xz
seaweedfs-67146ffa785fa35e216f603bcb80fb65c69f088c.zip
Adjust publicUrl to volume server only.
Remove publicUrl from master server.
Diffstat (limited to 'go/weed')
-rw-r--r--go/weed/master.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/go/weed/master.go b/go/weed/master.go
index a6dcd363b..55db0f620 100644
--- a/go/weed/master.go
+++ b/go/weed/master.go
@@ -31,7 +31,6 @@ var (
mport = cmdMaster.Flag.Int("port", 9333, "http listen port")
masterIp = cmdMaster.Flag.String("ip", "localhost", "master <ip>|<server> address")
masterBindIp = cmdMaster.Flag.String("ip.bind", "0.0.0.0", "ip address to bind to")
- mPublicUrl = cmdMaster.Flag.String("publicUrl", "", "peer accessible <ip>|<server_name>:port")
metaFolder = cmdMaster.Flag.String("mdir", os.TempDir(), "data directory to store meta data")
masterPeers = cmdMaster.Flag.String("peers", "", "other master nodes in comma separated ip:port list")
volumeSizeLimitMB = cmdMaster.Flag.Uint("volumeSizeLimitMB", 30*1000, "Master stops directing writes to oversized volumes.")
@@ -77,9 +76,6 @@ func runMaster(cmd *Command, args []string) bool {
go func() {
time.Sleep(100 * time.Millisecond)
myMasterAddress := *masterIp + ":" + strconv.Itoa(*mport)
- if *mPublicUrl != "" {
- myMasterAddress = *mPublicUrl
- }
var peers []string
if *masterPeers != "" {
peers = strings.Split(*masterPeers, ",")