Skip to content

Commit

Permalink
Fix issue #3855
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Dec 11, 2023
1 parent c62891d commit 5b81999
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/globaleaks/rest/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ def render(self, request):

request.client_using_mobile = re.search(b'Mobi|Android', request.client_ua, re.IGNORECASE) is not None

if (not State.tenants[1].cache.wizard_done or
request.hostname == b'localhost'):
if not State.tenants[1].cache.wizard_done or \
(State.tenants[1].cache.hostname == '' and isIPAddress(request.hostname)):
request.tid = 1
else:
request.tid = State.tenant_hostname_id_map.get(request.hostname, None)
Expand Down

0 comments on commit 5b81999

Please sign in to comment.