From a6a9af848305588becc4d9207e4555d268046f78 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Fri, 31 Aug 2012 14:07:33 +0100 Subject: [PATCH] Minor changes to main Server class (mounts need to be an instance variable) --- core/main/server.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/main/server.rb b/core/main/server.rb index b8ba556fd..e45fbbf77 100644 --- a/core/main/server.rb +++ b/core/main/server.rb @@ -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