mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 03:32:33 +08:00
fix:force-domain invalid
This commit is contained in:
parent
ea0d236259
commit
58cd8f9ac1
|
@ -943,7 +943,7 @@ func parseSniffer(snifferRaw SnifferRaw) (*Sniffer, error) {
|
|||
}
|
||||
|
||||
sniffer.SkipSNI = trie.New[bool]()
|
||||
for _, domain := range snifferRaw.ForceDomain {
|
||||
for _, domain := range snifferRaw.SkipSNI {
|
||||
err := sniffer.SkipSNI.Insert(domain, true)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error domian[%s] in force-domain, error:%v", domain, err)
|
||||
|
|
Loading…
Reference in New Issue
Block a user