From 9c6ffecbdc72bf425831e146c8a5d7589fd5c3b8 Mon Sep 17 00:00:00 2001 From: Genadi Samokovarov Date: Mon, 5 Oct 2015 18:21:23 +0300 Subject: [PATCH] Display a message with the IP web-console is seeing --- lib/web_console/whiny_request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web_console/whiny_request.rb b/lib/web_console/whiny_request.rb index 15b17868..c70f5138 100644 --- a/lib/web_console/whiny_request.rb +++ b/lib/web_console/whiny_request.rb @@ -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