From 8f93c501510456885a96504e2d777afcce2c8183 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Wed, 27 Aug 2025 17:22:13 +0800 Subject: [PATCH] Bug fix --- .../Services/CoreConfig/Singbox/SingboxInboundService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxInboundService.cs b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxInboundService.cs index c79d5b42..91f76ad9 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxInboundService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxInboundService.cs @@ -10,7 +10,7 @@ public partial class CoreConfigSingboxService singboxConfig.inbounds = []; if (!_config.TunModeItem.EnableTun - || _config.TunModeItem.EnableTun && _config.TunModeItem.EnableExInbound && _config.RunningCoreType == ECoreType.sing_box) + || (_config.TunModeItem.EnableTun && _config.TunModeItem.EnableExInbound && _config.RunningCoreType == ECoreType.sing_box)) { var inbound = new Inbound4Sbox() { @@ -78,7 +78,7 @@ public partial class CoreConfigSingboxService { Logging.SaveLog(_tag, ex); } - return 0; + return await Task.FromResult(0); } private Inbound4Sbox GetInbound(Inbound4Sbox inItem, EInboundProtocol protocol, bool bSocks)