diff --git a/includes/functions.php b/includes/functions.php index f436262..7a792a4 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 = shell_exec('ip rule show default | grep lokinet | awk {'print $5'}'); if ($lokinetstatus[0] == 0) { $status = '