Skip to content

Commit

Permalink
Correct our allowed development remote address
Browse files Browse the repository at this point in the history
  • Loading branch information
lomky committed Jul 14, 2016
1 parent beea48d commit 0e7cfdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Tuba/Auth.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 0e7cfdc

Please sign in to comment.