feat: implement EmptyUrls response handling and add release version configuration
Build and Release / release (push) Successful in 1m35s

This commit is contained in:
2026-06-12 12:17:41 +07:00
parent 48f801e05b
commit 2e6f54b7e7
3 changed files with 16 additions and 3 deletions
+11
View File
@@ -141,6 +141,17 @@ func main() {
return req, nil
}
if matchURL(path, EmptyUrls) {
full := req.URL.String()
zlog.Warn().Str("url", full).Msg("Empty URL Response")
return req, goproxy.NewResponse(
req,
goproxy.ContentTypeText,
http.StatusOK,
"",
)
}
if matchDomain(host, RedirectDomains) {
if matchURL(path, BlockUrls) {
full := req.URL.String()