diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-02-12 00:34:24 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-02-12 00:34:24 +0100 |
commit | 85d373bbd6c39290ace50e91dab648a8f968b95f (patch) | |
tree | 9d4a2d5bd962f156419e773e8983f3daeea9dfa8 | |
parent | dcd32c4a917e1917e82a5d6436b5fcdf3c36cd22 (diff) | |
parent | 062aff6713640b40449d19fbc1c423e29fdc705f (diff) | |
download | hosts-85d373bbd6c39290ace50e91dab648a8f968b95f.tar.gz hosts-85d373bbd6c39290ace50e91dab648a8f968b95f.tar.zst hosts-85d373bbd6c39290ace50e91dab648a8f968b95f.zip |
Merge branch 'master' into android
-rw-r--r-- | ImmaeEu-up | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3,7 +3,7 @@ | |||
3 | SUBDOMAIN=$(cat /sdcard/.tinc/tinc_domaine | tr -c -d "[a-zA-Z0-9.]") | 3 | SUBDOMAIN=$(cat /sdcard/.tinc/tinc_domaine | tr -c -d "[a-zA-Z0-9.]") |
4 | 4 | ||
5 | MYIPS=$(nslookup $SUBDOMAIN.immae.eu |sed -n "/$SUBDOMAIN.immae.eu/"',$p' | grep ^Address | sed -e "s/^[^:]*:[^0-9]*//" | tr '\n' ' ') | 5 | MYIPS=$(nslookup $SUBDOMAIN.immae.eu |sed -n "/$SUBDOMAIN.immae.eu/"',$p' | grep ^Address | sed -e "s/^[^:]*:[^0-9]*//" | tr '\n' ' ') |
6 | GWIP=$(nslookup vpn.immae.eu |sed -n "/vpn.immae.eu/"',$p' | grep ^Address | head -n1 | sed -e "s/^[^:]*:[^0-9]*//" | tr '\n' ' ') | 6 | GWIP=$(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 | ||
8 | echo -e "MYIPS=\"$MYIPS\"\nGWIP=\"$GWIP\"" > /sdcard/.tinc/vars | 8 | echo -e "MYIPS=\"$MYIPS\"\nGWIP=\"$GWIP\"" > /sdcard/.tinc/vars |
9 | ip -6 link set vpn6 up mtu 1280 | 9 | ip -6 link set vpn6 up mtu 1280 |