mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 18:24:36 +00:00
simplify packet definition (#30)
This commit is contained in:
@@ -246,7 +246,7 @@ impl PeerPacketFilter for UdpProxy {
|
||||
return None;
|
||||
};
|
||||
|
||||
let ipv4 = Ipv4Packet::new(&x.data)?;
|
||||
let ipv4 = Ipv4Packet::new(&x)?;
|
||||
|
||||
if ipv4.get_version() != 4 || ipv4.get_next_level_protocol() != IpNextHeaderProtocols::Udp {
|
||||
return None;
|
||||
|
||||
Reference in New Issue
Block a user