Skip to content

Commit

Permalink
tun: add netmask
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Oct 27, 2024
1 parent c9c0f14 commit 901e5c9
Show file tree
Hide file tree
Showing 2 changed files with 2 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

- tun mode: add default netmask

## 27 October 2024: mitmproxy_rs 0.10.4

Expand Down
1 change: 1 addition & 0 deletions src/packet_sources/tun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ impl PacketSourceConf for TunConf {
// Setting a local address and a destination is required on Linux.
config.address("169.254.0.2");
config.destination("169.254.0.1");
config.netmask("0.0.0.0");
config.up();
if let Some(tun_name) = self.tun_name {
config.tun_name(&tun_name);
Expand Down

0 comments on commit 901e5c9

Please sign in to comment.