test/examples/geoip-dns.rb in rubydns-0.5.4 vs test/examples/geoip-dns.rb in rubydns-0.6.0
- old
+ new
@@ -50,10 +50,10 @@
R = RubyDNS::Resolver.new(RubyDNS::System::nameservers)
GEO = GeoIP.new(File.expand_path('../GeoLiteCountry.dat', __FILE__))
def self.run
RubyDNS::run_server(:listen => INTERFACES) do
- match(//, IN::A) do |match_data, transaction|
+ match(//, IN::A) do |transaction|
location = nil
peer = transaction.options[:peer]
if peer
logger.debug "Looking up geographic information for peer #{peer}"