mirror of
https://github.com/fatedier/frp.git
synced 2025-07-13 09:19:46 +07:00
add real ip test
This commit is contained in:
@ -17,7 +17,11 @@ func SpecifiedHTTPBodyHandler(body []byte) http.HandlerFunc {
|
||||
|
||||
func ExpectResponseCode(code int) EnsureFunc {
|
||||
return func(resp *request.Response) bool {
|
||||
return resp.Code == code
|
||||
if resp.Code == code {
|
||||
return true
|
||||
}
|
||||
flog.Warn("Expect code %d, but got %d", code, resp.Code)
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user