bps limit should throttle kcp packet

This commit is contained in:
sijie.sun
2025-06-19 22:10:04 +08:00
committed by Sijie.Sun
parent 40601bd05b
commit dde7a4dff1

View File

@@ -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;
}