Fixes select proxy outbound server

This commit is contained in:
DHR60 2025-08-10 11:35:02 +08:00
parent 7995bdd4df
commit 2108a8f01d

View file

@ -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);