summaryrefslogtreecommitdiff
path: root/bin/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'bin/vnet')
-rwxr-xr-xbin/vnet5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/vnet b/bin/vnet
index 0eb15ee..e6722ab 100755
--- a/bin/vnet
+++ b/bin/vnet
@@ -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
);