frpc: reload proxy not saved after reconnecting

This commit is contained in:
fatedier 2019-01-30 11:12:28 +08:00
parent 05ca72dbf0
commit 5a7ef3be74

View File

@ -74,7 +74,7 @@ func (svr *Service) apiReload(w http.ResponseWriter, r *http.Request) {
return return
} }
err = svr.ctl.ReloadConf(pxyCfgs, visitorCfgs) err = svr.ReloadConf(pxyCfgs, visitorCfgs)
if err != nil { if err != nil {
res.Code = 4 res.Code = 4
res.Msg = err.Error() res.Msg = err.Error()