From 36559ad249ed437ba6a7c03678eadce756b69ff5 Mon Sep 17 00:00:00 2001 From: glen Date: Fri, 13 Nov 2020 17:30:07 -0500 Subject: [PATCH] add condition statement for execution of exits without token. --- config/lokilaunch.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/lokilaunch.sh b/config/lokilaunch.sh index b480bde..e96756b 100644 --- a/config/lokilaunch.sh +++ b/config/lokilaunch.sh @@ -38,8 +38,13 @@ bootstrap) ;; exitup) + if [ "$3" = "" ]; then + lokinet-vpn --up --exit "$2" + echo -n "lokinet --vpn --exit ""$2" + else lokinet-vpn --up --exit "$2" --token "$3" echo -n "lokinet-vpn --up --exit ""$2"" --token ""$3" + fi ;; exitdown)