From ef2cf5a7d74718c2e0ac92a0e34ecc27852096ec Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Thu, 25 Apr 2019 22:35:23 -0400 Subject: [PATCH] function rewrite --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index 14cc8e6..40f047d 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -344,7 +344,7 @@ function DisplayOpenVPNConfig() function DisplayLokinetConfig() { exec('pidof lokinet | wc -l', $lokinetstatus); - exec("ip rule show default | grep lokinet | awk {'print $5'}", $rulestate); + $rulestate = exec("ip rule show default | grep lokinet | awk {'print $5'}", $output); if ($lokinetstatus[0] == 0) { $status = '
Lokinet daemon is not running
';