sunty
2020-04-16 f689591ade2457d5fa707353c0b5959e6e486589
tools/middleware/middleware.go
@@ -113,12 +113,14 @@
   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"
      _, masterErr := http.Get(verificationMasterUrl)
      fmt.Println("masterErr", masterErr)
      if masterErr == nil {
         resStatu = true
      }