sniff_override_destination = RouteOnly ? false

pull/3773/head
2dust 2023-04-25 20:34:18 +08:00
parent 4020213729
commit 07c07ec60a
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
using v2rayN.Base;
using System.ComponentModel;
using v2rayN.Base;
using v2rayN.Mode;
using v2rayN.Resx;
@ -130,7 +131,7 @@ namespace v2rayN.Handler
var inbound = singboxConfig.inbounds[0];
inbound.listen_port = LazyConfig.Instance.GetLocalPort(Global.InboundSocks);
inbound.sniff = _config.inbound[0].sniffingEnabled;
inbound.sniff_override_destination = _config.inbound[0].sniffingEnabled;
inbound.sniff_override_destination = _config.inbound[0].routeOnly ? false : _config.inbound[0].sniffingEnabled;
//http
var inbound2 = Utils.DeepCopy(inbound);