mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-12 04:37:23 +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");
|
||||
} 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 {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user