自动同步

This commit is contained in:
snltty
2024-09-03 11:52:36 +08:00
parent 27b5449433
commit e8357ff4ca
13 changed files with 84 additions and 41 deletions

View File

@@ -388,8 +388,11 @@ namespace linker.tunnel
}
//在尝试外网
eps.AddRange(new List<IPEndPoint>{
//有NAT
new IPEndPoint(tunnelTransportInfo.Remote.Remote.Address,tunnelTransportInfo.Remote.Remote.Port),
new IPEndPoint(tunnelTransportInfo.Remote.Remote.Address,tunnelTransportInfo.Remote.Remote.Port+1),
//无NAT
new IPEndPoint(tunnelTransportInfo.Remote.Remote.Address,tunnelTransportInfo.Remote.Local.Port),
});
//再尝试IPV6
foreach (IPAddress item in tunnelTransportInfo.Remote.LocalIps.Where(c => c.AddressFamily == AddressFamily.InterNetworkV6))