Просмотр исходного кода

fix(etcd): checkURL on webURL

make it so that dropping the schema isn't fatal.
Brandon Philips 12 лет назад
Родитель
Сommit
60c71a98a4
1 измененных файлов с 1 добавлено и 0 удалено
  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)