Use Dnsruby::Message for all inputs
This commit is contained in:
parent
09b094cd64
commit
8cc2b87f59
|
@ -128,7 +128,9 @@ module DNS
|
|||
when Net::DNS::Packet, Resolv::DNS::Message
|
||||
packet = Rex::Proto::DNS::Packet.encode_drb(argument)
|
||||
else
|
||||
packet = make_query_packet(argument,type,cls)
|
||||
net_packet = make_query_packet(argument,type,cls)
|
||||
# This returns a Net::DNS::Packet. Convert to Dnsruby::Message for consistency
|
||||
packet = Rex::Proto::DNS::Packet.encode_drb(net_packet)
|
||||
end
|
||||
|
||||
# Store packet_data for performance improvements,
|
||||
|
|
Loading…
Reference in New Issue