feat: implement EmptyUrls response handling and add release version configuration
Build and Release / release (push) Successful in 1m35s
Build and Release / release (push) Successful in 1m35s
This commit is contained in:
@@ -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",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"tag": "1.3-01",
|
"tag": "1.3-02",
|
||||||
"title": "PreBuild Version 1.3 - 01"
|
"title": "PreBuild Version 1.3 - 02"
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user