X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=2258ae884aeb5a0654f55d286200e84c85e6e2fe;hp=92ec1807fa2384ca33a5db9f158ec9f21e2c9c45;hb=e840432040b3ff50ae772daec9327be08b55c2b7;hpb=0d42b769cb502cae1587cbe8e606ea15921508d2 diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 92ec180..2258ae8 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -205,7 +205,7 @@ sub composed_stats_class { __PACKAGE__->_encode_check(Encode::FB_CROAK | Encode::LEAVE_SRC); # Remember to update this in Catalyst::Runtime as well! -our $VERSION = '5.90120'; +our $VERSION = '5.90122'; $VERSION = eval $VERSION if $VERSION =~ /_/; # numify for warning-free dev releases sub import { @@ -3467,7 +3467,7 @@ sub apply_default_middlewares { condition => sub { my ($env) = @_; return if $app->config->{ignore_frontend_proxy}; - return $env->{REMOTE_ADDR} eq '127.0.0.1'; + return $env->{REMOTE_ADDR} && $env->{REMOTE_ADDR} eq '127.0.0.1'; }, ); }