mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 08:44:29 +00:00
feat: update User-Agent regex pattern to ignore case sensitivity
This commit is contained in:
parent
e50f478ccf
commit
1df2c88e4f
@ -66,6 +66,9 @@ func main() {
|
||||
return
|
||||
}
|
||||
logrus.Info(fmt.Sprintf("Listen on %s:%d", addr, port))
|
||||
|
||||
// ignore case
|
||||
uaPattern = "(?i)" + uaPattern
|
||||
uaRegexp, err = regexp2.Compile(uaPattern, regexp2.None)
|
||||
if err != nil {
|
||||
logrus.Fatal("Invalid User-Agent Regex Pattern: ", err)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user