lib/zold/node/front.rb in zold-0.16.14 vs lib/zold/node/front.rb in zold-0.16.15
- old
+ new
@@ -80,9 +80,10 @@
end
use Rack::Deflater
before do
Thread.current.thread_variable_set(:uri, request.url)
+ Thread.current.thread_variable_set(:ip, request.ip)
@start = Time.now
if !settings.halt.empty? && params[:halt] && params[:halt] == settings.halt
settings.log.error('Halt signal received, shutting the front end down...')
Front.stop!
end