|
|
|
@ -66,10 +66,7 @@ function start_vpn() {
|
|
|
|
|
while ! ip netns exec lokins ip a show dev lokitun0 up 2>/dev/null >/dev/null; do
|
|
|
|
|
sleep .5
|
|
|
|
|
done
|
|
|
|
|
exitdotloki=$(host exit.loki | grep handled | cut -d' ' -f7 | sed -e 's/\.$//')
|
|
|
|
|
while [[ $(ip netns exec lokins lokinet-vpn --status) != "::/0 via $exitdotloki" ]] ; do
|
|
|
|
|
ip netns exec lokins lokinet-vpn --up --exit $exitdotloki
|
|
|
|
|
done
|
|
|
|
|
ip netns exec lokins lokinet-vpn --up --exit exit.loki 2>/dev/null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
|