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

index 19ed831..f197123 100644 (file)
@@ -335,8 +335,11 @@ class Pman_Admin_Iptables extends Pman {
     function createBase()
     {
         
-        $iptables = System::which('iptables');
-        if (!$iptables) {
+         require_once 'System.php';
+        
+        $iptables = System::which('iptables', '/sbin/iptables');
+        
+         if (!$iptables || !file_exists($iptables)) {
             $this->jerr("iptables could not be found.");
         }