From c561916b67cf997ac3a698fcb8937584a2dac8c2 Mon Sep 17 00:00:00 2001 From: DHR60 Date: Sun, 10 Aug 2025 11:58:07 +0800 Subject: [PATCH] Fixes select proxy outbound server (#7727) --- .../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 aa4b4322..6ced20f0 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs @@ -1014,7 +1014,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);