summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-01-31 21:11:57 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-01-31 21:11:57 +0100
commit7c869ec04330f2f07c571b1fec8c14273d754ea6 (patch)
tree9712d132e61d024458c3ec45997a6dff6525f0a9
parent724eb33c2a3fb121731f254c20af10107ef74086 (diff)
vnet: ext ip: Use http, print ? if get() fails
-rwxr-xr-xbin/vnet3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/vnet b/bin/vnet
index aa4f7c0..3238614 100755
--- a/bin/vnet
+++ b/bin/vnet
@@ -19,7 +19,8 @@ my $share = $0;
my ($ext_ip, $int_ip);
sub get_ext_ip {
- my $ext = get('https://derf.homelinux.org/cgi-bin/clientinfo/ip.cgi');
+ my $ext = get('http://derf.homelinux.org/cgi-bin/clientinfo/ip.cgi')
+ // qq{?} ;
chomp $ext;
return $ext;
}