mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-03-22 01:14:46 +01:00
fix(logger): Field reference error
Fix the error when the server_url in config is not configured.
This commit is contained in:
@@ -32,7 +32,7 @@ def get_url(inpage=False):
|
||||
config_yaml = yaml.safe_load(config_file)
|
||||
if "server_url" in config_yaml:
|
||||
return str(config_yaml["server_url"])
|
||||
app.logge.warning("Failed to find server_url in the config. Falling back to ENV variable")
|
||||
app.logger.warning("Failed to find server_url in the config. Falling back to ENV variable")
|
||||
return os.environ['HS_SERVER']
|
||||
|
||||
def set_api_key(api_key):
|
||||
|
||||
Reference in New Issue
Block a user