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
+3 -1
View File
@@ -23,7 +23,9 @@ var AlwaysIgnoreDomains = []string{
"autopatchos.starrails.com", "autopatchos.starrails.com",
} }
var AlwaysIgnoreUrls = []string{ var AlwaysIgnoreUrls = []string{}
var EmptyUrls = []string{
"/query_security_file", "/query_security_file",
} }
+11
View File
@@ -141,6 +141,17 @@ func main() {
return req, nil 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 matchDomain(host, RedirectDomains) {
if matchURL(path, BlockUrls) { if matchURL(path, BlockUrls) {
full := req.URL.String() full := req.URL.String()
+2 -2
View File
@@ -1,5 +1,5 @@
{ {
"tag": "1.3-01", "tag": "1.3-02",
"title": "PreBuild Version 1.3 - 01" "title": "PreBuild Version 1.3 - 02"
} }