From 503c7b5463d8d347cc41d5d79aa8cd2cf246c41a Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Thu, 25 Apr 2019 21:13:12 -0400 Subject: [PATCH] function test --- includes/functions.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 7c9067c..c6c1643 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -344,7 +344,7 @@ function DisplayOpenVPNConfig() function DisplayLokinetConfig() { exec('pidof lokinet | wc -l', $lokinetstatus); - shell_exec('sudo iptables -t nat -L' > $networkstate) + exec(ip rule show default | grep lokinet | awk {'print $5'}, $rulestate); if ($lokinetstatus[0] == 0) { $status = '
Lokinet daemon is not running @@ -387,16 +387,16 @@ function DisplayLokinetConfig()
Contact Loki user groups for the latest bootstrap file location
' , PHP_EOL; } else { echo '' , PHP_EOL; } - if ($lokinetstatus[0] == 0) { - echo '' , PHP_EOL; - } else { - echo '' , PHP_EOL; - } + if ($lokinetstatus[0] == 0) { + echo '' , PHP_EOL; + } else { + echo '' , PHP_EOL; + } $filename = '/usr/local/bin/lokinet.ini';