mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-08 10:56:13 -08:00
bps limit should throttle kcp packet
This commit is contained in:
1 parent
40601bd05b
commit
dde7a4dff1
1 file changed
+4
-1
@@ -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