mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Skip resolving IP addresses to improve performance.
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
//loop through the chains
|
||||
if (is_array($chains)) {
|
||||
foreach ($chains as $chain) {
|
||||
$command = "iptables --list INPUT | grep ".$chain." | awk '{print \$1}' | sed ':a;N;\$!ba;s/\\n/,/g' ";
|
||||
$command = "iptables --list INPUT --numeric | grep ".$chain." | awk '{print \$1}' | sed ':a;N;\$!ba;s/\\n/,/g' ";
|
||||
//if ($debug) { echo $command."\n"; }
|
||||
$response = shell($command);
|
||||
if (!in_array($chain, explode(",", $response))) {
|
||||
|
||||
Reference in New Issue
Block a user