sunty
2020-04-16 7a522df01bec7e5bcecd983bd4b3f20a3297be6d
tools/middleware/middleware.go
@@ -113,12 +113,15 @@
   case config.StartScriptAsVolume:
      verificationVolumeUrl := "http://" + ip + ":6700/ui/index.html"
      _, volume1Err := http.Get(verificationVolumeUrl)
      fmt.Println("volume1Err", volume1Err)
      if volume1Err == nil {
         resStatu = true
      }
   case config.StartScriptAsMaster:
      verificationMasterUrl := "http://" + ip + ":6333"
      fmt.Println("verificationMasterUrl: ", verificationMasterUrl)
      _, masterErr := http.Get(verificationMasterUrl)
      fmt.Println("masterErr", masterErr)
      if masterErr == nil {
         resStatu = true
      }