X-Git-Url: https://snippets.scripts.mit.edu/gitweb.cgi/Scripts/git/.git/blobdiff_plain/fb12881374b1b8127c838072598a9df1eed1eaf9..5ba5fe8d4f31b66af67137cc36f79597138b76b0:/__init__.py diff --git a/__init__.py b/__init__.py index 73e7e88..4d09313 100644 --- a/__init__.py +++ b/__init__.py @@ -129,7 +129,7 @@ def get_or_create_mit_user(username, ): def scripts_login(request, **kwargs): host = request.META['HTTP_HOST'].split(':')[0] - if host == 'localhost': + if host in ('localhost', '127.0.0.1'): return login(request, **kwargs) elif request.META['SERVER_PORT'] == '444': if request.user.is_authenticated():