Ver código fonte

fix user in reload command

fatedier 7 anos atrás
pai
commit
d5931758b6
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      client/admin_api.go

+ 1 - 1
client/admin_api.go

@@ -64,7 +64,7 @@ func (svr *Service) apiReload(w http.ResponseWriter, r *http.Request, _ httprout
 		return
 	}
 
-	pxyCfgs, vistorCfgs, err := config.LoadProxyConfFromFile(newCommonCfg.User, conf, newCommonCfg.Start)
+	pxyCfgs, vistorCfgs, err := config.LoadProxyConfFromFile(config.ClientCommonCfg.User, conf, newCommonCfg.Start)
 	if err != nil {
 		res.Code = 3
 		res.Msg = err.Error()