Included debug messages, fixed problem with some network interfaces

This commit is contained in:
Wiktor Mazur
2019-09-12 19:27:36 +02:00
parent 7da8ff3565
commit b625d7b847
4 changed files with 17 additions and 4 deletions
+2 -1
View File
@@ -85,7 +85,8 @@ fn initialize(_py: Python) -> PyResult<u32> {
let (tx, rx): (Sender<UdpPacket>, Receiver<UdpPacket>) = channel();
packet_sniffer::receive(tx);
info!("Listening to network packets...");
loop {
if let Ok(packet) = rx.recv() {
if packet.destination_port != 5056 && packet.source_port != 5056 {