diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-02-04 23:56:21 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-02-04 23:56:21 +0100 |
commit | ef866c1e3f35e7d5e863b91f2a44a7376ca4d180 (patch) | |
tree | e44f0aade0d0aae6b54a03628dbcc4b1ffce60da | |
parent | b86df5489d338acc09a191ea8f98ae8165f7a3e3 (diff) |
vnet: Do not run while on WWAN
-rwxr-xr-x | bin/vnet | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -19,6 +19,11 @@ my $share = $0; my ($ext_ip, $int_ip); sub get_ext_ip { + + if (-d '/sys/class/net/ppp0') { + return qq{-}; + } + my $ua = LWP::UserAgent->new( env_proxy => 0 ); |