Iptables.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 29 Mar 2013 09:03:24 +0000 (17:03 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 29 Mar 2013 09:03:24 +0000 (17:03 +0800)
Iptables.php

index b76f11d..19ed831 100644 (file)
@@ -223,12 +223,11 @@ class Pman_Admin_Iptables extends Pman {
     
     function updateTables()
     {
-       
         require_once 'System.php';
         
-        $iptables = System::which('iptables');
+        $iptables = System::which('iptables', '/sbin/iptables');
         
-         if (!$iptables) {
+         if (!$iptables || !file_exists($iptables)) {
             $this->jerr("iptables could not be found.");
         }
         // this should have been set up already..