From 3099f6f3f383f9ef0b77686dc181a7121183e4d9 Mon Sep 17 00:00:00 2001 From: Marco Ochse Date: Wed, 22 Feb 2017 15:21:10 +0100 Subject: [PATCH] Fix broken proxy support by using curl with different IP service ... leaving comment for DNS variant --- installer/etc/rc.local | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/etc/rc.local b/installer/etc/rc.local index cbea9ea0..980872af 100755 --- a/installer/etc/rc.local +++ b/installer/etc/rc.local @@ -2,7 +2,8 @@ # Let's add the first local ip to the /etc/issue and external ip to ews.ip file source /etc/environment myLOCALIP=$(hostname -I | awk '{ print $1 }') -myEXTIP=$(dig +short myip.opendns.com @resolver1.opendns.com) +#myEXTIP=$(dig +short myip.opendns.com @resolver1.opendns.com) +myEXTIP=$(curl -s whatismyip.akamai.com) sed -i "s#IP:.*#IP: $myLOCALIP ($myEXTIP)#" /etc/issue sed -i "s#SSH:.*#SSH: ssh -l tsec -p 64295 $myLOCALIP#" /etc/issue sed -i "s#WEB:.*#WEB: https://$myLOCALIP:64297#" /etc/issue