summaryrefslogtreecommitdiffstats
path: root/bin/drakvpn
diff options
context:
space:
mode:
Diffstat (limited to 'bin/drakvpn')
-rwxr-xr-xbin/drakvpn4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/drakvpn b/bin/drakvpn
index fbf10a6..595787c 100755
--- a/bin/drakvpn
+++ b/bin/drakvpn
@@ -13,5 +13,7 @@ use standalone;
use interactive;
use network::drakvpn;
-my $in = 'interactive'->vnew('su');
+require_root_capability();
+
+my $in = 'interactive'->vnew;
network::drakvpn::create_connection($in);