Make sure we use an IPv4 address in the remote install script.

This commit is contained in:
grossmj 2018-03-08 21:09:00 +07:00
parent 38f458db7c
commit 0bd7736460

View File

@ -310,7 +310,7 @@ apt-get install -y \
dnsutils \ dnsutils \
nginx-light nginx-light
MY_IP_ADDR=$(dig @ns1.google.com -t txt o-o.myaddr.l.google.com +short | sed 's/"//g') MY_IP_ADDR=$(dig @ns1.google.com -t txt o-o.myaddr.l.google.com +short -4 | sed 's/"//g')
log "IP detected: $MY_IP_ADDR" log "IP detected: $MY_IP_ADDR"