Update server.py

This commit is contained in:
Namhyeon Go 2024-03-07 03:24:28 +09:00 committed by GitHub
parent b9e6265063
commit 125a7a787b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,8 +47,8 @@ def extract_credentials(url):
# initalization
try:
listening_port = config('PORT', default=5555, cast=int)
_username, _password, server_url = extract_credentials(config('SERVER_URL', default='localhost'))
server_connection_type = config('SERVER_CONNECTION_TYPE', default='stateless')
_username, _password, server_url = extract_credentials(config('SERVER_URL', default=''))
server_connection_type = config('SERVER_CONNECTION_TYPE', default='')
cakey = config('CA_KEY', default='ca.key')
cacert = config('CA_CERT', default='ca.crt')
certkey = config('CERT_KEY', default='cert.key')