fix:force-domain invalid

This commit is contained in:
Skyxim 2022-04-17 21:17:21 +08:00 committed by GitHub
parent ea0d236259
commit 58cd8f9ac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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