Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Dec 30, 2024
1 parent 21b6b6e commit 0cdd415
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/python-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.13
3.12
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
- name: linux-arm64
os: ubuntu-latest
target: aarch64-unknown-linux-gnu
args: --compatibility manylinux2014 --zig --target aarch64-unknown-linux-gnu -i 3.13
args: --compatibility manylinux2014 --zig --target aarch64-unknown-linux-gnu -i 3.12
- name: macos-universal
os: macos-latest
target: aarch64-apple-darwin x86_64-apple-darwin
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
args: --compatibility manylinux2014 --zig --sdist
- name: linux-arm64
target: aarch64-unknown-linux-gnu
args: --compatibility manylinux2014 --zig --target aarch64-unknown-linux-gnu
args: --compatibility manylinux2014 --zig --target aarch64-unknown-linux-gnu -i 3.12
runs-on: ubuntu-latest
steps:
- uses: mhils/workflows/checkout@v12
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 @@ -69,6 +69,8 @@ pub fn create_tun_device(tun_name: Option<String>) -> Result<(tun::AsyncDevice,
) {
log::error!("Failed to enable route_localnet: {e}");
}
// Update accept_local so that injected packets with a local address (e.g. 127.0.0.1)
// as source address are accepted.
if let Err(e) = fs::write(
format!("/proc/sys/net/ipv4/conf/{tun_name}/accept_local"),
"1",
Expand Down

0 comments on commit 0cdd415

Please sign in to comment.