Add publicUrl for master server

This commit is contained in:
chrislusf
2015-02-11 21:04:43 -08:00
parent f7998f8652
commit eff83a87d1
3 changed files with 7 additions and 10 deletions

View File

@@ -47,7 +47,7 @@ var cmdServer = &Command{
}
var (
serverIp = cmdServer.Flag.String("ip", "", "ip or server name")
serverIp = cmdServer.Flag.String("ip", "localhost", "ip or server name")
serverPublicUrl = cmdServer.Flag.String("publicUrl", "", "publicly accessible address")
serverBindIp = cmdServer.Flag.String("ip.bind", "0.0.0.0", "ip address to bind to")
serverMaxCpu = cmdServer.Flag.Int("maxCpu", 0, "maximum number of CPUs. 0 means all available CPUs")
@@ -99,10 +99,6 @@ func runServer(cmd *Command, args []string) bool {
defer pprof.StopCPUProfile()
}
if *serverIp == "" {
*serverIp = "localhost"
}
if *filerOptions.redirectOnRead {
*isStartingFiler = true
}