Skip to content

Commit

Permalink
L142 2024-07-11-11:46
Browse files Browse the repository at this point in the history
  • Loading branch information
ludgerh committed Jul 11, 2024
1 parent c941911 commit b08032d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions camai/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,12 @@
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '192.168.126.25']
CLIENT_URL = 'http://localhost:8000/'
if myip:
ALLOWED_HOSTS += myip
CLIENT_URL = 'http://' + myip[0] + ':8000/'
if isinstance(myip, str):
ALLOWED_HOSTS = [myip]
CLIENT_URL = 'http://' + myip + ':8000/'
else:
ALLOWED_HOSTS += myip
CLIENT_URL = 'http://' + myip[0] + ':8000/'
if mydomain:
ALLOWED_HOSTS.append(mydomain.split(':')[0])
trustedorigin = 'https://'+mydomain
Expand Down
2 changes: 1 addition & 1 deletion camai/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '1.3.9'
version = '1.3.9a'

0 comments on commit b08032d

Please sign in to comment.