mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-14 12:29:36 +03:00
fix(common): strmatcher match domain safety
This commit is contained in:
@ -217,6 +217,10 @@ func TestACAutomaton(t *testing.T) {
|
||||
pattern: "vvgoogle.com",
|
||||
res: true,
|
||||
},
|
||||
{
|
||||
pattern: "½",
|
||||
res: false,
|
||||
},
|
||||
}
|
||||
for _, test := range cases2Output {
|
||||
if m := ac.Match(test.pattern); m != test.res {
|
||||
@ -224,7 +228,6 @@ func TestACAutomaton(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
cases3Input := []struct {
|
||||
pattern string
|
||||
|
Reference in New Issue
Block a user