Commit e1d24821 authored by Patrick J Cherry's avatar Patrick J Cherry
Browse files

firewall: Updated code to work with new get_param results

parent eb9eb7a4
......@@ -254,7 +254,7 @@ blacklist.generate.each do |ip, ports|
#
# Check filename without .auto first.
#
if Symbiosis::Utils.get_param(setting, blacklist_d) == false
if !Symbiosis::Utils.get_param(setting, blacklist_d)
#
# Automatically blacklist.
#
......
......@@ -278,12 +278,12 @@ Symbiosis::Utmp.read(wtmp_file).each do |entry|
#
# Check filename without .auto first.
#
if Symbiosis::Utils.get_param(setting, whitelist_d) == false
if !Symbiosis::Utils.get_param(setting, whitelist_d)
#
# Automatically whitelist.
#
setting += ".auto"
value = Symbiosis::Utils.get_param(setting, whitelist_d)
value = !!Symbiosis::Utils.get_param(setting, whitelist_d)
if false == value
puts "\tAdding whitelist entry" if $VERBOSE
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment