update CI

This commit is contained in:
ginuerzh
2022-01-10 11:42:51 +08:00
parent 37e77bdce5
commit 0dd604a1f8
6 changed files with 56 additions and 72 deletions

View File

@ -274,7 +274,7 @@ func (h *httpHandler) authenticate(conn net.Conn, req *http.Request, resp *http.
return true
}
pr := h.md.probeResist
pr := h.md.probeResistance
// probing resistance is enabled, and knocking host is mismatch.
if pr != nil && (pr.Knock == "" || !strings.EqualFold(req.URL.Hostname(), pr.Knock)) {
resp.StatusCode = http.StatusServiceUnavailable // default status code