mirror of
https://github.com/2dust/v2rayN.git
synced 2026-01-17 11:29:33 +00:00
Fix (#8407)
This commit is contained in:
parent
cc4154bb0d
commit
1ca2485d2a
2 changed files with 7 additions and 1 deletions
|
|
@ -230,6 +230,7 @@ public class ShadowsocksFmt : BaseFmt
|
||||||
if (!host.IsNullOrEmpty())
|
if (!host.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
item.RequestHost = host.Replace("host=", "");
|
item.RequestHost = host.Replace("host=", "");
|
||||||
|
item.Sni = item.RequestHost;
|
||||||
}
|
}
|
||||||
if (!path.IsNullOrEmpty())
|
if (!path.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -180,10 +180,15 @@ public partial class CoreConfigV2rayService
|
||||||
}
|
}
|
||||||
case EConfigType.WireGuard:
|
case EConfigType.WireGuard:
|
||||||
{
|
{
|
||||||
|
var address = node.Address;
|
||||||
|
if (Utils.IsIpv6(address))
|
||||||
|
{
|
||||||
|
address = $"[{address}]";
|
||||||
|
}
|
||||||
var peer = new WireguardPeer4Ray
|
var peer = new WireguardPeer4Ray
|
||||||
{
|
{
|
||||||
publicKey = node.PublicKey,
|
publicKey = node.PublicKey,
|
||||||
endpoint = node.Address + ":" + node.Port.ToString()
|
endpoint = address + ":" + node.Port.ToString()
|
||||||
};
|
};
|
||||||
var setting = new Outboundsettings4Ray
|
var setting = new Outboundsettings4Ray
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue