Skip to content

Commit

Permalink
Display a message with the IP web-console is seeing
Browse files Browse the repository at this point in the history
  • Loading branch information
gsamokovarov committed Oct 28, 2015
1 parent c8b7fc8 commit 9c6ffec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web_console/whiny_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module WebConsole
class WhinyRequest < SimpleDelegator
def from_whitelisted_ip?
whine_unless request.from_whitelisted_ip? do
"Cannot render console from #{request.remote_ip}! " \
"Cannot render console from #{request.strict_remote_ip}! " \
"Allowed networks: #{request.whitelisted_ips}"
end
end
Expand Down

0 comments on commit 9c6ffec

Please sign in to comment.