aboutsummaryrefslogtreecommitdiff
path: root/vpn
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-03-20 18:39:27 +0530
committersinanmohd <sinan@firemail.cc>2023-03-20 18:39:27 +0530
commit517ca983569e87eb0e17ef0f7b714573fc9520da (patch)
treecdd296155213a9c603b0418ecdd36db38188a62d /vpn
parentc64fd9b62dc40008898b238dc5061490594e2ca7 (diff)
vpn: only call wip when the connection is successful
Diffstat (limited to 'vpn')
-rwxr-xr-xvpn4
1 files changed, 1 insertions, 3 deletions
diff --git a/vpn b/vpn
index b22667f..0eef247 100755
--- a/vpn
+++ b/vpn
@@ -19,9 +19,7 @@ main()
else
sudo -A -p " init, authentication required: " wg-quick up "$wg_conf" &&
note "traffic routed through $wg_conf"
- fi
-
- command -v wip > /dev/null &&
+ fi && command -v wip > /dev/null &&
wip
}