mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-06 04:24:59 +03:00
Fixes select proxy outbound server (#7727)
This commit is contained in:
@@ -1014,7 +1014,8 @@ public class CoreConfigSingboxService
|
|||||||
}
|
}
|
||||||
|
|
||||||
//current proxy
|
//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);
|
var txtOutbound = EmbedUtils.GetEmbedText(Global.SingboxSampleOutbound);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user