From 0bd773646093030c3ded1c18a6920063f98c9eeb Mon Sep 17 00:00:00 2001 From: grossmj Date: Thu, 8 Mar 2018 21:09:00 +0700 Subject: [PATCH] Make sure we use an IPv4 address in the remote install script. --- scripts/remote-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/remote-install.sh b/scripts/remote-install.sh index c59128ba..00580d4a 100644 --- a/scripts/remote-install.sh +++ b/scripts/remote-install.sh @@ -310,7 +310,7 @@ apt-get install -y \ dnsutils \ 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"