This commit is contained in:
snltty
2025-04-14 16:48:52 +08:00
parent 91caa57aff
commit 5f7f045979
2 changed files with 4 additions and 4 deletions

View File

@@ -279,7 +279,7 @@ 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);
@@ -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;
}
}

View File

@@ -1,5 +1,5 @@
v1.7.3
2025-04-14 16:46:15
2025-04-14 16:48:52
1. 优化自动分配IP
2. 优化网卡,排除不明数据包
3. 虚拟网卡点对网IP映射用于解决网段冲突