diff options
author | sinanmohd <sinan@firemail.cc> | 2023-03-20 18:39:27 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-03-20 18:39:27 +0530 |
commit | 517ca983569e87eb0e17ef0f7b714573fc9520da (patch) | |
tree | cdd296155213a9c603b0418ecdd36db38188a62d /vpn | |
parent | c64fd9b62dc40008898b238dc5061490594e2ca7 (diff) |
vpn: only call wip when the connection is successful
Diffstat (limited to 'vpn')
-rwxr-xr-x | vpn | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 } |