This commit is contained in:
DHR60
2025-11-29 19:58:51 +08:00
committed by GitHub
parent cc4154bb0d
commit 1ca2485d2a
2 changed files with 7 additions and 1 deletions
@@ -180,10 +180,15 @@ public partial class CoreConfigV2rayService
}
case EConfigType.WireGuard:
{
var address = node.Address;
if (Utils.IsIpv6(address))
{
address = $"[{address}]";
}
var peer = new WireguardPeer4Ray
{
publicKey = node.PublicKey,
endpoint = node.Address + ":" + node.Port.ToString()
endpoint = address + ":" + node.Port.ToString()
};
var setting = new Outboundsettings4Ray
{