summaryrefslogtreecommitdiffstats
path: root/vpn-connect
diff options
context:
space:
mode:
Diffstat (limited to 'vpn-connect')
-rwxr-xr-xvpn-connect6
1 files changed, 4 insertions, 2 deletions
diff --git a/vpn-connect b/vpn-connect
index fef8fea..8f9ea4a 100755
--- a/vpn-connect
+++ b/vpn-connect
@@ -13,7 +13,9 @@ for i in 128.130.0.0/15 192.35.240.0/24 193.170.3.0/24 193.170.72.0/21; do
sudo ip route add $i dev vpntun0
done
-hostnames=(ieeexplore.ieee.org dl.acm.org)
+hostnames=(ieeexplore.ieee.org dl.acm.org
+proquest.tech.safaribooksonline.de
+)
for ip in $(dig +short "${hostnames[@]}"); do
- sudo ip route add dev vpntun0 "$ip"
+ sudo ip route add dev vpntun0 "$ip" || true
done