From 2a5f8639fcc21add3f9161d4986542005d4b1833 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 22 Apr 2018 22:24:24 +0200 Subject: misc Signed-off-by: Florian Pritz --- vpn-connect | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vpn-connect') 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 -- cgit v1.2.3-24-g4f1b