From d76abc8fe3327f58527de2879d18ac1bf06830f5 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sun, 17 Apr 2022 21:17:21 +0800 Subject: [PATCH] fix:force-domain invalid --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 678560d4..2ed565e2 100644 --- a/config/config.go +++ b/config/config.go @@ -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)