From ba5d2c0737f63b9be081c9b162fdba01052b4039 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Thu, 25 Apr 2019 21:06:58 -0400 Subject: [PATCH] set variable rulestate --- includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index 8a88d97..026bebf 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -344,6 +344,7 @@ function DisplayOpenVPNConfig() function DisplayLokinetConfig() { exec('pidof lokinet | wc -l', $lokinetstatus); + $rulestate = exec(ip rule show default | grep lokinet | awk {'print $5'}); if ($lokinetstatus[0] == 0) { $status = '
Lokinet daemon is not running @@ -386,7 +387,7 @@ function DisplayLokinetConfig()
Contact Loki user groups for the latest bootstrap file location
' , PHP_EOL; } else { echo '' , PHP_EOL;