rack-entrance 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack/entrance/version.rb +1 -1
- data/lib/rack/entrance.rb +1 -1
- data/spec/lib/rack/entrance_spec.rb +1 -1
- metadata +1 -1
data/lib/rack/entrance.rb
CHANGED
@@ -9,7 +9,7 @@ module Rack
|
|
9
9
|
|
10
10
|
def call(env)
|
11
11
|
request = Rack::Request.new(env)
|
12
|
-
ip = env["action_dispatch.remote_ip"] || request.ip
|
12
|
+
ip = (env["action_dispatch.remote_ip"] || request.ip).to_s
|
13
13
|
request.env['entrance.ip'] = ip
|
14
14
|
request.env['entrance.internal_ips'] = internal_ips
|
15
15
|
request.env['entrance.internal'] = internal?(ip)
|