mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 16:57:08 +00:00
fix: direct forward empty ua http request
This commit is contained in:
parent
9b9681db8e
commit
420311ca0c
@ -174,9 +174,14 @@ func (r *Rewriter) EvaluateRewriteDecision(req *http.Request, srcAddr, destAddr
|
|||||||
// GLOBAL
|
// GLOBAL
|
||||||
var err error
|
var err error
|
||||||
matches := false
|
matches := false
|
||||||
isWhitelist := r.inWhitelist(originalUA)
|
|
||||||
decision := &RewriteDecision{}
|
decision := &RewriteDecision{}
|
||||||
|
|
||||||
|
if originalUA == "" {
|
||||||
|
decision.Action = rule.ActionDirect
|
||||||
|
return decision
|
||||||
|
}
|
||||||
|
|
||||||
|
isWhitelist := r.inWhitelist(originalUA)
|
||||||
if !isWhitelist {
|
if !isWhitelist {
|
||||||
if r.pattern == "" {
|
if r.pattern == "" {
|
||||||
matches = true
|
matches = true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user