Iptables.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 29 Mar 2013 07:50:46 +0000 (15:50 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 29 Mar 2013 07:50:46 +0000 (15:50 +0800)
Iptables.php

index 6b19808..9e28ab3 100644 (file)
@@ -245,7 +245,7 @@ class Pman_Admin_Iptables extends Pman {
             }
             
             if ($old) {
-                $this->exec("{$iptables} -R postgres {$old['num']} -s {$ip}/32 -j ACCEPT --comment $comment";
+                $this->exec("{$iptables} -R postgres {$old['num']} -s {$ip}/32 -j ACCEPT --comment $comment");
                 
                 if (isset($remove[$ip])) {
                     unset($remove[$ip]);
@@ -253,7 +253,7 @@ class Pman_Admin_Iptables extends Pman {
                 continue;
             }
             
-            $this->exec("{$iptables} -I postgres {$lastrulenum} -s {$ip}/32 -j ACCEPT --comment $comment";
+            $this->exec("{$iptables} -I postgres {$lastrulenum} -s {$ip}/32 -j ACCEPT --comment $comment");