summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/network/drakvpn.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/network/drakvpn.pm b/lib/network/drakvpn.pm
index 1ffafda..4e259d9 100644
--- a/lib/network/drakvpn.pm
+++ b/lib/network/drakvpn.pm
@@ -9,7 +9,9 @@ network::drakvpn - Interactive VPN configuration
use interactive;
use network::drakvpn;
- my $in = 'interactive'->vnew('su');
+ require_root_capability();
+
+ my $in = 'interactive'->vnew;
network::drakvpn::create_connection($in);
=cut