You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash
cargo b --release
sudo setcap cap_net_admin=eip ./target/release/tcp
./target/release/tcp &
pid=$1
sudo ip addr add 192.168.0.1/24 dev tun0
trap "kill $pid" INT TERM
wait $pid
fix pid=$1 to pid=$1, so the pid var is correcly assigned?
#!/bin/bash
cargo b --release
sudo setcap cap_net_admin=eip ./target/release/tcp
./target/release/tcp &
pid=$!
sudo ip addr add 192.168.0.1/24 dev tun0
trap "kill $pid" INT TERM
wait $pid
The text was updated successfully, but these errors were encountered:
slowpz
changed the title
chapter1 fixed started started script
chapter1 fixed started script
Jan 3, 2024
fix pid=$1 to pid=$1, so the pid var is correcly assigned?
The text was updated successfully, but these errors were encountered: