diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-02-12 00:31:12 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-02-12 00:32:30 +0100 |
commit | 062aff6713640b40449d19fbc1c423e29fdc705f (patch) | |
tree | 26208c1cbeb82870b2690e542def9cb138082ba1 | |
parent | 07ebb0b011fc2fa862113c12f7fdec337109bd64 (diff) | |
download | hosts-062aff6713640b40449d19fbc1c423e29fdc705f.tar.gz hosts-062aff6713640b40449d19fbc1c423e29fdc705f.tar.zst hosts-062aff6713640b40449d19fbc1c423e29fdc705f.zip |
Use vpn-gw domain
-rwxr-xr-x | ImmaeEu-up | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,7 +11,7 @@ | |||
11 | SUBDOMAIN=`cat /etc/tinc/$NETNAME/tinc_domaine` | 11 | SUBDOMAIN=`cat /etc/tinc/$NETNAME/tinc_domaine` |
12 | while [ -z "$MYIPS" -o -z "$GWIP" ]; do | 12 | while [ -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 |
16 | done | 16 | done |
17 | rm -f /tmp/tinc_$NETNAME | 17 | rm -f /tmp/tinc_$NETNAME |