Ver Fonte

fix(etcd): checkURL on webURL

make it so that dropping the schema isn't fatal.
Brandon Philips há 12 anos atrás
pai
commit
60c71a98a4
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      etcd.go

+ 1 - 0
etcd.go

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