CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/proto/mdns/server.rb
Views: 15996
1
# -*- coding: binary -*-
2
3
require 'rex/socket'
4
module Rex
5
module Proto
6
module MDNS
7
class Server < Rex::Proto::DNS::Server
8
def initialize(lhost = '0.0.0.0', lport = 5353, start_cache = false, res = nil, comm = nil, _ctx = {}, dblock = nil,
9
sblock = nil)
10
super(lhost, lport, true, false, start_cache, res, comm, dblock, sblock)
11
end
12
13
def alias
14
'mDNS Server'
15
end
16
end
17
end
18
end
19
end
20
21