Browse Source

fix(etcd): checkURL on webURL

make it so that dropping the schema isn't fatal.
Brandon Philips 12 years ago
parent
commit
60c71a98a4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      etcd.go

+ 1 - 0
etcd.go

@@ -237,6 +237,7 @@ func main() {
 
 
 	if argInfo.WebURL != "" {
 	if argInfo.WebURL != "" {
 		// start web
 		// start web
+		argInfo.WebURL = checkURL(argInfo.WebURL, "http")
 		etcdStore.SetMessager(storeMsg)
 		etcdStore.SetMessager(storeMsg)
 		go webHelper()
 		go webHelper()
 		go web.Start(raftServer, argInfo.WebURL)
 		go web.Start(raftServer, argInfo.WebURL)