Skip to content

Commit

Permalink
Create mDNS server.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
remmons-r7 authored Nov 11, 2024
1 parent b712f9a commit 4951a9b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/rex/proto/mdns/server.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: binary -*-

require 'rex/socket'
module Rex
module Proto
module MDNS
class Server < Rex::Proto::DNS::Server
def initialize(lhost = '0.0.0.0', lport = 5353, start_cache = false, res = nil, comm = nil, _ctx = {}, dblock = nil,
sblock = nil)
super(lhost, lport, true, false, start_cache, res, comm, dblock, sblock)
end

def alias
'mDNS Server'
end
end
end
end
end

0 comments on commit 4951a9b

Please sign in to comment.