From 18a78b57b2548cb0d102208099b1ab7becc33486 Mon Sep 17 00:00:00 2001 From: soh_cah_toa Date: Thu, 16 May 2013 23:20:04 -0400 Subject: [PATCH] Fixed load_rules() to rebuild 'pattern' and 'type' as an array. This was forgotten in the previous commit. --- extensions/dns/ruby/rubydns.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/dns/ruby/rubydns.rb b/extensions/dns/ruby/rubydns.rb index fb5e21c62..222c6aec8 100644 --- a/extensions/dns/ruby/rubydns.rb +++ b/extensions/dns/ruby/rubydns.rb @@ -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)