This commit is contained in:
iFargle
2023-02-15 19:54:48 +09:00
parent 2b97d2ca04
commit eb39651eef

View File

@@ -20,8 +20,8 @@ def render_overview():
# Overview page will just read static information from the config file and display it
# Open the config.yaml and parse it.
config_file = ""
except: config_file = open("/etc/headscale/config.yml", "r")
try: config_file = open("/etc/headscale/config.yaml", "r")
try: config_file = open("/etc/headscale/config.yml", "r")
except: config_file = open("/etc/headscale/config.yaml", "r")
config_yaml = yaml.safe_load(config_file)
# Get and display the following information: