Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Timothy Frew
Sympl
Commits
a793ee53
Commit
a793ee53
authored
Aug 12, 2009
by
Steve Kemp
Browse files
Correctly handle named files.
parent
b9e0b4e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
firewall/bin/firewall-blacklist
View file @
a793ee53
...
...
@@ -520,13 +520,13 @@ sub expireBlacklist
#
# Remove any blacklisted IP which is now on our whitelist.
#
foreach
my
$file
(
sort
(
glob
(
"
$CONFIG
{'
white
list'}/*
"
)
)
)
foreach
my
$file
(
sort
(
glob
(
"
$CONFIG
{'
black
list'}/*
"
)
)
)
{
#
# Get the IP
#
my
$ip
=
$file
;
if
(
$ip
=~
/(.*)\/(.*)$/
)
if
(
$ip
=~
/(.*)\/(.*)
\.auto
$/
i
)
{
$ip
=
$
2
;
}
...
...
firewall/debian/changelog
View file @
a793ee53
bytemark-vhost-firewall (20090812171748) stable; urgency=low
* Correctly handle mis-named blacklisted files.
-- Steve Kemp <steve@bytemark.co.uk> Wed, 12 Aug 2009 17:17:48 +0000
bytemark-vhost-firewall (20090812162548) stable; urgency=low
* Remove active blacklist entries for IPs which are subsequently
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment