Minor changes to main Server class (mounts need to be an instance variable)

This commit is contained in:
antisnatchor
2012-08-31 14:07:33 +01:00
parent 9ea0f60138
commit a6a9af8483

View File

@@ -62,9 +62,9 @@ module BeEF
raise Exception::TypeError, '"url" needs to be a string' if not url.string?
if args == nil
mounts[url] = http_handler_class
@mounts[url] = http_handler_class
else
mounts[url] = http_handler_class, *args
@mounts[url] = http_handler_class, *args
end
print_debug("Server: mounted handler '#{url}'")
end