summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-02-12 00:34:24 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-02-12 00:34:24 +0100
commit85d373bbd6c39290ace50e91dab648a8f968b95f (patch)
tree9d4a2d5bd962f156419e773e8983f3daeea9dfa8
parentdcd32c4a917e1917e82a5d6436b5fcdf3c36cd22 (diff)
parent062aff6713640b40449d19fbc1c423e29fdc705f (diff)
downloadhosts-85d373bbd6c39290ace50e91dab648a8f968b95f.tar.gz
hosts-85d373bbd6c39290ace50e91dab648a8f968b95f.tar.zst
hosts-85d373bbd6c39290ace50e91dab648a8f968b95f.zip
Merge branch 'master' into android
-rw-r--r--ImmaeEu-up2
1 files changed, 1 insertions, 1 deletions
diff --git a/ImmaeEu-up b/ImmaeEu-up
index f57c2e3..0921046 100644
--- a/ImmaeEu-up
+++ b/ImmaeEu-up
@@ -3,7 +3,7 @@
3SUBDOMAIN=$(cat /sdcard/.tinc/tinc_domaine | tr -c -d "[a-zA-Z0-9.]") 3SUBDOMAIN=$(cat /sdcard/.tinc/tinc_domaine | tr -c -d "[a-zA-Z0-9.]")
4 4
5MYIPS=$(nslookup $SUBDOMAIN.immae.eu |sed -n "/$SUBDOMAIN.immae.eu/"',$p' | grep ^Address | sed -e "s/^[^:]*:[^0-9]*//" | tr '\n' ' ') 5MYIPS=$(nslookup $SUBDOMAIN.immae.eu |sed -n "/$SUBDOMAIN.immae.eu/"',$p' | grep ^Address | sed -e "s/^[^:]*:[^0-9]*//" | tr '\n' ' ')
6GWIP=$(nslookup vpn.immae.eu |sed -n "/vpn.immae.eu/"',$p' | grep ^Address | head -n1 | sed -e "s/^[^:]*:[^0-9]*//" | tr '\n' ' ') 6GWIP=$(nslookup gw.vpn.immae.eu |sed -n "/gw.vpn.immae.eu/"',$p' | grep ^Address | head -n1 | sed -e "s/^[^:]*:[^0-9]*//" | tr '\n' ' ')
7 7
8echo -e "MYIPS=\"$MYIPS\"\nGWIP=\"$GWIP\"" > /sdcard/.tinc/vars 8echo -e "MYIPS=\"$MYIPS\"\nGWIP=\"$GWIP\"" > /sdcard/.tinc/vars
9ip -6 link set vpn6 up mtu 1280 9ip -6 link set vpn6 up mtu 1280