- Fixed origin is not populated in log bug
This commit is contained in:
Toby Chui
2025-04-02 20:11:43 +08:00
parent d4c1225f75
commit 05f1743ecd
8 changed files with 50 additions and 45 deletions

View File

@@ -23,7 +23,7 @@ func (h *ProxyHandler) handleAccessRouting(ruleID string, w http.ResponseWriter,
isBlocked, blockedReason := accessRequestBlocked(accessRule, h.Parent.Option.WebDirectory, w, r)
if isBlocked {
h.Parent.logRequest(r, false, 403, blockedReason, "")
h.Parent.logRequest(r, false, 403, blockedReason, r.Host, "")
}
return isBlocked
}