summary refs log tree commit diff
path: root/fvpn_stop.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fvpn_stop.sh')
-rwxr-xr-xfvpn_stop.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/fvpn_stop.sh b/fvpn_stop.sh
index 5149fba..e1dca4d 100755
--- a/fvpn_stop.sh
+++ b/fvpn_stop.sh
@@ -5,7 +5,7 @@ SERVER=vpn.example.org
 
 ip route del   0.0.0.0/1
 ip route del 128.0.0.0/1
-ip route del "$(dig +short $SERVER | head -1)/32"
+ip route del "$(dig +short $SERVER | tail -1)/32"
 
 killall fatvpn
 ip link set $TAP down