mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-14 13:47:24 +08:00
bps limit should throttle kcp packet
This commit is contained in:
@@ -300,7 +300,10 @@ impl ForeignNetworkEntry {
|
|||||||
}
|
}
|
||||||
tracing::trace!(?hdr, "ignore packet in foreign network");
|
tracing::trace!(?hdr, "ignore packet in foreign network");
|
||||||
} else {
|
} else {
|
||||||
if hdr.packet_type == PacketType::Data as u8 {
|
if hdr.packet_type == PacketType::Data as u8
|
||||||
|
|| hdr.packet_type == PacketType::KcpSrc as u8
|
||||||
|
|| hdr.packet_type == PacketType::KcpDst as u8
|
||||||
|
{
|
||||||
if !relay_data {
|
if !relay_data {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user