Allow usage of connection management

This commit is contained in:
Ben Passmore
2019-10-08 16:14:46 +10:00
parent 9babcba7c3
commit 4cecca4075

View File

@@ -162,7 +162,9 @@ module BeEF
# Starts the BeEF http server
#
def start
@http_server.start
@http_server.start do
use OTR::ActiveRecord::ConnectionManagement
end
rescue RuntimeError => e
# port is in use
raise unless e.message.include? 'no acceptor'