projects
/
Pman.Admin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
419814d
)
Iptables.php
author
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 07:30:06 +0000
(15:30 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 07:30:06 +0000
(15:30 +0800)
Iptables.php
patch
|
blob
|
history
diff --git
a/Iptables.php
b/Iptables.php
index
d5566a2
..
5d86ca1
100644
(file)
--- a/
Iptables.php
+++ b/
Iptables.php
@@
-136,7
+136,7
@@
class Pman_Admin_Iptables extends Pman {
}
$match = array();
preg_match('/\s*inet addr:([0-9.]+)\s+/', $l, $match);
- $ips[] = $match[1];
+ $ips[$match[1]] = ''; // no expiry...
}
$this->ips = $ips;