Fixed load_rules() to rebuild 'pattern' and 'type' as an array.

This was forgotten in the previous commit.
This commit is contained in:
soh_cah_toa
2013-05-16 23:20:04 -04:00
parent 24f7e5b6cd
commit 18a78b57b2

View File

@@ -77,7 +77,7 @@ module RubyDNS
def load_rules
BeEF::Core::Models::DNS::Rule.each do |rule|
id = rule.id
pattern = rule.pattern
pattern = [rule.pattern, rule.type]
block = eval rule.block
@rules << Rule.new(id, pattern, block)