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 76df379
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions backend/globaleaks/rest/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,9 @@ 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 \
request.hostname == b'localhost' 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
1 change: 0 additions & 1 deletion client/cypress/e2e/15-test-admin-configure-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ describe("admin configure network", () => {
cy.get('[name="hostname"]').clear().type("localhost");
cy.get('button:contains("Save")').first().click();

//cy.waitForLoader();
cy.get("#HTTPSManualMode").click();

// Generate key
Expand Down

0 comments on commit 76df379

Please sign in to comment.