mirror of
https://github.com/fatedier/frp.git
synced 2025-07-22 22:01:55 +07:00
fix
This commit is contained in:
@ -29,10 +29,10 @@ func GetProxyStatus(statusAddr string, user string, passwd string, name string)
|
||||
if err != nil {
|
||||
return status, err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
if resp.StatusCode != 200 {
|
||||
return status, fmt.Errorf("admin api status code [%d]", resp.StatusCode)
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
body, err := ioutil.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
return status, err
|
||||
|
Reference in New Issue
Block a user