diff --git a/src/main.rs b/src/main.rs index 02379de..3db0f11 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,7 @@ use webbrowser; use std::process; const DESTINATION_IP: &str = "255.255.255.255"; -const SOURCE_PORT: u16 = 14236; +//const SOURCE_PORT: u16 = 14236; const DESTINATION_PORT: u16 = 14235; #[derive(Clone, Hash, Eq, PartialEq)] @@ -200,7 +200,7 @@ fn extract_packet_info(packet: &[u8]) -> Option { if ipv4.get_next_level_protocol() == IpNextHeaderProtocols::Udp { let udp = UdpPacket::new(ipv4.payload())?; if ipv4.get_destination() == DESTINATION_IP.parse::().unwrap() - && udp.get_source() == SOURCE_PORT + //&& udp.get_source() == SOURCE_PORT && udp.get_destination() == DESTINATION_PORT { return Some(PacketInfo {