summaryrefslogtreecommitdiffstats
path: root/vpn-connect
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-04-22 22:24:24 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-04-22 22:24:24 +0200
commit2a5f8639fcc21add3f9161d4986542005d4b1833 (patch)
tree16e9f0e4d64bfd1c2f0f8bb4008d0949497af968 /vpn-connect
parent31da047b3c06927bd80b78071119678004371098 (diff)
downloadbin-2a5f8639fcc21add3f9161d4986542005d4b1833.tar.gz
bin-2a5f8639fcc21add3f9161d4986542005d4b1833.tar.xz
misc
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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