diff --git a/lib/Tuba/Auth.pm b/lib/Tuba/Auth.pm index aaf2fa2c..3d7326d5 100644 --- a/lib/Tuba/Auth.pm +++ b/lib/Tuba/Auth.pm @@ -96,7 +96,7 @@ sub login { return $c->render if $ENV{HARNESS_ACTIVE}; return $c->render if $c->req->is_secure; return $c->render if ($c->app->mode eq 'development' && $c->tx->remote_address eq '127.0.0.1'); - return $c->render if $c->app->mode eq 'development' && $c->tx->remote_address =~ /^192\.168/; + return $c->render if $c->app->mode eq 'development' && $c->tx->remote_address =~ /^10\.24\.10\.[678]$/; return $c->render if $c->app->mode eq 'development' && $ENV{TUBA_ALLOW_INSECURE_LOGINS}; my $secure = $c->req->url->clone->to_abs; $secure->base->scheme('https');