mirror of
https://github.com/snltty/linker.git
synced 2025-09-27 05:25:57 +08:00
173
This commit is contained in:
@@ -279,9 +279,9 @@ namespace linker.tun
|
||||
return false;
|
||||
}
|
||||
|
||||
private void OutputPacket(string tag,ReadOnlyMemory<byte> buffer)
|
||||
private void OutputPacket(string tag, ReadOnlyMemory<byte> buffer)
|
||||
{
|
||||
|
||||
|
||||
byte version = (byte)(buffer.Span[0] >> 4 & 0b1111);
|
||||
|
||||
if (version == 4)
|
||||
@@ -362,7 +362,7 @@ namespace linker.tun
|
||||
{
|
||||
uint realDist = BinaryPrimitives.ReverseEndianness(realNetwork | (fakeDist & ~masks[i]));
|
||||
ReWriteIP(buffer, realDist, 16);
|
||||
natDic.TryAdd(realDist, fakeDist);
|
||||
natDic.AddOrUpdate(realDist, fakeDist, (a, b) => fakeDist);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
v1.7.3
|
||||
2025-04-14 16:46:15
|
||||
2025-04-14 16:48:52
|
||||
1. 优化自动分配IP
|
||||
2. 优化网卡,排除不明数据包
|
||||
3. 虚拟网卡点对网IP映射,用于解决网段冲突
|
Reference in New Issue
Block a user