Removes Wireguard listen port

DHR60 2025-05-28 20:39:20 +08:00
parent 9f6a478d70
commit a31a7a8ded
2 changed files with 1 additions and 2 deletions

View File

@ -153,7 +153,7 @@ public class Endpoints4Sbox : BaseServer4Sbox
public int? mtu { get; set; }
public List<string> address { get; set; }
public string private_key { get; set; }
public int listen_port { get; set; }
public int? listen_port { get; set; }
public string? udp_timeout { get; set; }
public int? workers { get; set; }
public List<Peer4Sbox> peers { get; set; }

View File

@ -790,7 +790,6 @@ public class CoreConfigSingboxService
try
{
endpoint.address = Utils.String2List(node.RequestHost);
endpoint.listen_port = Utils.GetFreePort();
endpoint.type = Global.ProtocolTypes[node.ConfigType];
if (Utils.IsDomain(node.Address))