Browse Source

fix(etcd): checkURL on webURL

make it so that dropping the schema isn't fatal.
Brandon Philips 12 năm trước cách đây
mục cha
commit
60c71a98a4
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)