fix:force-domain invalid
This commit is contained in:
parent
0ffa697d8d
commit
d76abc8fe3
1 changed files with 1 additions and 1 deletions
|
@ -943,7 +943,7 @@ func parseSniffer(snifferRaw SnifferRaw) (*Sniffer, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
sniffer.SkipSNI = trie.New[bool]()
|
sniffer.SkipSNI = trie.New[bool]()
|
||||||
for _, domain := range snifferRaw.ForceDomain {
|
for _, domain := range snifferRaw.SkipSNI {
|
||||||
err := sniffer.SkipSNI.Insert(domain, true)
|
err := sniffer.SkipSNI.Insert(domain, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("error domian[%s] in force-domain, error:%v", domain, err)
|
return nil, fmt.Errorf("error domian[%s] in force-domain, error:%v", domain, err)
|
||||||
|
|
Loading…
Reference in a new issue