From f02554dcbacaa842f98dc2ef6a6db45feac689dc Mon Sep 17 00:00:00 2001 From: mzz2017 Date: Wed, 20 Apr 2022 12:59:54 +0800 Subject: [PATCH] fix: turn off sniffing for http and socks5 inbounds #448 --- service/core/v2ray/templateJson.go | 8 ++++---- service/core/v2ray/v2rayTmpl.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/service/core/v2ray/templateJson.go b/service/core/v2ray/templateJson.go index 07d78c68..07b01f03 100644 --- a/service/core/v2ray/templateJson.go +++ b/service/core/v2ray/templateJson.go @@ -8,7 +8,7 @@ const TemplateJson = ` "listen": "0.0.0.0", "protocol": "socks", "sniffing": { - "enabled": true, + "enabled": false, "destOverride": [ "http", "tls" @@ -28,7 +28,7 @@ const TemplateJson = ` "listen": "0.0.0.0", "protocol": "http", "sniffing": { - "enabled": true, + "enabled": false, "destOverride": [ "http", "tls" @@ -41,7 +41,7 @@ const TemplateJson = ` "listen": "0.0.0.0", "protocol": "socks", "sniffing": { - "enabled": true, + "enabled": false, "destOverride": [ "http", "tls" @@ -61,7 +61,7 @@ const TemplateJson = ` "listen": "0.0.0.0", "protocol": "http", "sniffing": { - "enabled": true, + "enabled": false, "destOverride": [ "http", "tls" diff --git a/service/core/v2ray/v2rayTmpl.go b/service/core/v2ray/v2rayTmpl.go index 640256dc..0779b1c5 100644 --- a/service/core/v2ray/v2rayTmpl.go +++ b/service/core/v2ray/v2rayTmpl.go @@ -1759,7 +1759,7 @@ func (t *Template) InsertMappingOutbound(o serverObj.ServerObj, inboundPort stri Protocol: protocol, Listen: "0.0.0.0", Sniffing: coreObj.Sniffing{ - Enabled: true, + Enabled: false, DestOverride: []string{"http", "tls"}, }, Settings: &coreObj.InboundSettings{