File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,14 @@ class GeoIPDNS < Process::Daemon
58
58
59
59
def startup
60
60
RubyDNS . run_server ( listen : INTERFACES ) do
61
- fallback_resolver_supervisor =
62
- RubyDNS :: Resolver . supervise ( RubyDNS :: System . nameservers )
61
+ fallback_resolver_supervisor = RubyDNS :: Resolver . supervise ( RubyDNS :: System . nameservers )
62
+
63
63
match ( // , IN ::A ) do |transaction |
64
64
logger . debug 'In block'
65
65
66
66
# The IP Address of the peer is stored in the transaction options
67
- # with the key :peer
68
- ip_address = transaction . options [ :peer ]
67
+ # with the key :remote_address
68
+ ip_address = transaction . options [ :remote_address ] . ip_address
69
69
logger . debug "Looking up geographic information for peer #{ ip_address } "
70
70
location = GeoIPDNS . ip_to_location ( ip_address )
71
71
You can’t perform that action at this time.
0 commit comments