diff --git a/v2rayN/ServiceLib/Handler/Fmt/ShadowsocksFmt.cs b/v2rayN/ServiceLib/Handler/Fmt/ShadowsocksFmt.cs index a17a8bd8..f7941527 100644 --- a/v2rayN/ServiceLib/Handler/Fmt/ShadowsocksFmt.cs +++ b/v2rayN/ServiceLib/Handler/Fmt/ShadowsocksFmt.cs @@ -230,6 +230,7 @@ public class ShadowsocksFmt : BaseFmt if (!host.IsNullOrEmpty()) { item.RequestHost = host.Replace("host=", ""); + item.Sni = item.RequestHost; } if (!path.IsNullOrEmpty()) { diff --git a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs index 53a04a5f..d6c4a579 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs @@ -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 {