mirror of
https://github.com/cmur2/dyndnsd.git
synced 2026-11-14 12:55:58 +01:00
gem: resolv does not register on-demand classes anymore
This commit is contained in:
1 parent
7457b1c383
commit
cdfe55a801
1 file changed
+4
-1
@@ -142,7 +142,10 @@ module Dyndnsd
|
|||||||
# Since solargraph cannot parse this: param transaction [Async::DNS::Transaction]
|
# Since solargraph cannot parse this: param transaction [Async::DNS::Transaction]
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def process(name, resource_class, transaction)
|
def process(name, resource_class, transaction)
|
||||||
if name != @domain || resource_class != Resolv::DNS::Resource::Generic::Type252_Class1
|
axfr = resource_class.const_defined?(:TypeValue) &&
|
||||||
|
resource_class.const_get(:TypeValue) == 252 && # AXFR
|
||||||
|
resource_class.const_get(:ClassValue) == 1 # IN
|
||||||
|
if name != @domain || !axfr
|
||||||
transaction.fail!(:NXDomain)
|
transaction.fail!(:NXDomain)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user