Fixes to net-shaper and net.sh (#7002)

* Fixes to net-shaper and net.sh

* fixes to default filters and cleanup
This commit is contained in:
Pankaj Garg
2019-11-18 11:33:33 -08:00
committed by GitHub
parent e0a2bb9d86
commit 955aaef2e6
3 changed files with 105 additions and 33 deletions

View File

@ -19,6 +19,8 @@ iface="$(ifconfig | grep mtu | grep -iv loopback | grep -i running | awk 'BEGIN
if [[ "$1" = cleanup ]]; then
$sudo ~solana/.cargo/bin/solana-net-shaper cleanup -f "$2" -s "$3" -p "$4" -i "$iface"
elif [[ "$1" = force_cleanup ]]; then
$sudo ~solana/.cargo/bin/solana-net-shaper force_cleanup -i "$iface"
else
$sudo ~solana/.cargo/bin/solana-net-shaper shape -f "$2" -s "$3" -p "$4" -i "$iface"
fi