Skip to content

Commit caf26fb

Browse files
committed
Fix up old references to HTTP code
1 parent ad10cb8 commit caf26fb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/rex/proto/smb/server.rb

+3-6
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module SMB
99

1010
###
1111
#
12-
# Acts as an HTTP server, processing requests and dispatching them to
13-
# registered procs. Some of this server was modeled after webrick.
12+
# Acts as an SMB server, processing requests and dispatching them to
13+
# registered procs.
1414
#
1515
###
1616
class Server
@@ -32,16 +32,13 @@ def initialize(port = 445, listen_host = '0.0.0.0', context = {}, comm = nil, gs
3232
@rubysmb_server = nil
3333
end
3434

35-
# More readable inspect that only shows the url and resources
3635
# @return [String]
3736
def inspect
38-
resources_str = resources.keys.map{|r| r.inspect }.join ", "
39-
4037
"#<#{self.class} smb://#{listen_host}:#{listen_port} >"
4138
end
4239

4340
#
44-
# Returns the hardcore alias for the HTTP service
41+
# Returns the hardcore alias for the SMB service
4542
#
4643
def self.hardcore_alias(*args, **kwargs)
4744
gss_alias = ''

0 commit comments

Comments
 (0)