Skip to content

Commit

Permalink
add debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Oct 27, 2024
1 parent 1b8d5e8 commit 5ca210e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Unreleased: mitmproxy_rs next

- Add debug info.

## 27 October 2024: mitmproxy_rs 0.10.1

Expand Down
2 changes: 2 additions & 0 deletions src/packet_sources/tun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ impl PacketSourceTask for TunTask {
log::error!("Skipping invalid packet from tun interface: {:?}", &buf[..len]);
continue;
};
dbg!(&packet);
permit.take().unwrap().send(NetworkEvent::ReceivePacket {
packet,
tunnel_info: TunnelInfo::None,
Expand All @@ -103,6 +104,7 @@ impl PacketSourceTask for TunTask {
Some(command) = self.net_rx.recv(), if packet_to_send.is_empty() => {
match command {
NetworkCommand::SendPacket(packet) => {
dbg!(&packet);
packet_to_send = packet.into_inner();
}
}
Expand Down

0 comments on commit 5ca210e

Please sign in to comment.