]> git.immae.eu Git - perso/Immae/Config/tinc/hosts.git/blobdiff - ImmaeEu-up
Use vpn-gw domain
[perso/Immae/Config/tinc/hosts.git] / ImmaeEu-up
index 3a2e073179587e9363cdb2b9fdcd7bbfd3e8ed2c..56710a195556d9bf3f6451ff8c5d5ca25f2410eb 100755 (executable)
@@ -11,7 +11,7 @@
 SUBDOMAIN=`cat /etc/tinc/$NETNAME/tinc_domaine`
 while [ -z "$MYIPS" -o -z "$GWIP" ]; do
        MYIPS=`getent hosts ${SUBDOMAIN}.immae.eu | cut -d' ' -f1 | tr "\\n" ' '`
-       GWIP=`getent hosts vpn.immae.eu | head -n1 | cut -d' ' -f1`
+       GWIP=`getent hosts gw.vpn.immae.eu | head -n1 | cut -d' ' -f1`
        sleep 5
 done
 rm -f /tmp/tinc_$NETNAME