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

index 8e17d3c..9907b63 100644 (file)
@@ -158,9 +158,9 @@ class Pman_Admin_Iptables extends Pman {
         
          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..