summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-02-12 00:31:12 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-02-12 00:32:30 +0100
commit062aff6713640b40449d19fbc1c423e29fdc705f (patch)
tree26208c1cbeb82870b2690e542def9cb138082ba1
parent07ebb0b011fc2fa862113c12f7fdec337109bd64 (diff)
downloadhosts-062aff6713640b40449d19fbc1c423e29fdc705f.tar.gz
hosts-062aff6713640b40449d19fbc1c423e29fdc705f.tar.zst
hosts-062aff6713640b40449d19fbc1c423e29fdc705f.zip
Use vpn-gw domain
-rwxr-xr-xImmaeEu-up2
1 files changed, 1 insertions, 1 deletions
diff --git a/ImmaeEu-up b/ImmaeEu-up
index 3a2e073..56710a1 100755
--- a/ImmaeEu-up
+++ b/ImmaeEu-up
@@ -11,7 +11,7 @@
11SUBDOMAIN=`cat /etc/tinc/$NETNAME/tinc_domaine` 11SUBDOMAIN=`cat /etc/tinc/$NETNAME/tinc_domaine`
12while [ -z "$MYIPS" -o -z "$GWIP" ]; do 12while [ -z "$MYIPS" -o -z "$GWIP" ]; do
13 MYIPS=`getent hosts ${SUBDOMAIN}.immae.eu | cut -d' ' -f1 | tr "\\n" ' '` 13 MYIPS=`getent hosts ${SUBDOMAIN}.immae.eu | cut -d' ' -f1 | tr "\\n" ' '`
14 GWIP=`getent hosts vpn.immae.eu | head -n1 | cut -d' ' -f1` 14 GWIP=`getent hosts gw.vpn.immae.eu | head -n1 | cut -d' ' -f1`
15 sleep 5 15 sleep 5
16done 16done
17rm -f /tmp/tinc_$NETNAME 17rm -f /tmp/tinc_$NETNAME