From e4cecc27df591c12918faca11837a38dee8c9796 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Mon, 21 Nov 2011 16:45:09 +0100 Subject: [PATCH] renabled commented-out Mutex in server initialization. Without this mutex the tunneling proxy cannot start. --- 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 8cb9c924a..18c49ad05 100644 --- a/core/main/server.rb +++ b/core/main/server.rb @@ -24,7 +24,7 @@ module BeEF # @note Grabs the version of beef the framework is deployed on VERSION = BeEF::Core::Configuration.instance.get('beef.version') - attr_reader :root_dir, :url, :configuration, :command_urls, :mounts + attr_reader :root_dir, :url, :configuration, :command_urls, :mounts, :semaphore def initialize @configuration = BeEF::Core::Configuration.instance @@ -34,7 +34,7 @@ module BeEF @command_urls = {} @mounts = {} @rack_app - # @semaphore = Mutex.new + @semaphore = Mutex.new end def to_h