mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-05-15 14:32:46 +00:00
rename target from 'tun2proxy' to 'tun2proxy-bin'
make rust compiler happy
This commit is contained in:
parent
77d651dc70
commit
6c8ae7a33f
10 changed files with 24 additions and 24 deletions
|
@ -8,7 +8,7 @@ echo $SCRIPT_DIR
|
|||
|
||||
netns="test"
|
||||
dante="danted"
|
||||
tun2proxy="${SCRIPT_DIR}/../target/release/tun2proxy"
|
||||
tun2proxy="${SCRIPT_DIR}/../target/release/tun2proxy-bin"
|
||||
|
||||
ip netns add "$netns"
|
||||
|
||||
|
@ -51,4 +51,4 @@ sleep 3
|
|||
iperf3 -c 10.0.0.4 -P 10
|
||||
|
||||
# Clean up
|
||||
# sudo sh -c "pkill tun2proxy; pkill iperf3; pkill danted; ip link del tun0; ip netns del test"
|
||||
# sudo sh -c "pkill tun2proxy-bin; pkill iperf3; pkill danted; ip link del tun0; ip netns del test"
|
||||
|
|
|
@ -30,7 +30,7 @@ function core_function() {
|
|||
else
|
||||
trap 'echo "" && echo "tun2proxy exited with code: $?" && restore' EXIT
|
||||
local SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
local APP_BIN_PATH="${SCRIPT_DIR}/../target/release/tun2proxy"
|
||||
local APP_BIN_PATH="${SCRIPT_DIR}/../target/release/tun2proxy-bin"
|
||||
"${APP_BIN_PATH}" --tun tun0 --proxy "${PROXY_TYPE}://${PROXY_IP}:${PROXY_PORT}" -v trace
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||
|
||||
netns="test"
|
||||
dante="danted"
|
||||
tun2proxy="${SCRIPT_DIR}/../target/release/tun2proxy"
|
||||
tun2proxy="${SCRIPT_DIR}/../target/release/tun2proxy-bin"
|
||||
|
||||
ip netns add "$netns"
|
||||
|
||||
|
@ -80,4 +80,4 @@ sleep 3
|
|||
rperf -c 10.0.0.4 -v trace -P 1 -u -r
|
||||
|
||||
# Clean up
|
||||
# sudo sh -c "pkill tun2proxy; pkill rperf; pkill danted; ip link del tun0; ip netns del test"
|
||||
# sudo sh -c "pkill tun2proxy-bin; pkill rperf; pkill danted; ip link del tun0; ip netns del test"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue