From 2108a8f01d2c92a125d0b5ee90ef1e1cc13912cf Mon Sep 17 00:00:00 2001 From: DHR60 Date: Sun, 10 Aug 2025 11:35:02 +0800 Subject: [PATCH] Fixes select proxy outbound server --- .../ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs b/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs index 80b89654..8b90752c 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs @@ -1022,7 +1022,8 @@ public class CoreConfigSingboxService } //current proxy - BaseServer4Sbox? outbound = singboxConfig.endpoints?.FirstOrDefault(t => t.tag == Global.ProxyTag) == null ? singboxConfig.outbounds.First() : null; + BaseServer4Sbox? outbound = singboxConfig.endpoints?.FirstOrDefault(t => t.tag == Global.ProxyTag, null); + outbound ??= singboxConfig.outbounds.First(); var txtOutbound = EmbedUtils.GetEmbedText(Global.SingboxSampleOutbound);