fix:force-domain invalid

This commit is contained in:
gVisor bot 2022-04-17 21:17:21 +08:00
parent 0ffa697d8d
commit d76abc8fe3

View file

@ -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)