chore: sniffer param skip-sni renamed to ship-domain, old param will be removed in the release version

This commit is contained in:
MetaCubeX
2022-05-03 23:10:59 +08:00
parent eca7615f08
commit 5c6f2694c7
2 changed files with 12 additions and 9 deletions

View File

@ -241,7 +241,7 @@ func updateTun(tun *config.Tun, dns *config.DNS) {
func updateSniffer(sniffer *config.Sniffer) {
if sniffer.Enable {
dispatcher, err := SNI.NewSnifferDispatcher(sniffer.Sniffers, sniffer.ForceDomain, sniffer.SkipSNI, sniffer.Ports)
dispatcher, err := SNI.NewSnifferDispatcher(sniffer.Sniffers, sniffer.ForceDomain, sniffer.SkipDomain, sniffer.Ports)
if err != nil {
log.Warnln("initial sniffer failed, err:%v", err)
}