Added version to env vars, added local hostname to env vars and a bug fix.

This commit is contained in:
Johannes Findeisen 2022-09-09 00:12:09 +02:00
commit 2dbc971275
3 changed files with 9 additions and 3 deletions

View file

@ -40,7 +40,8 @@ class HTTPServer:
@cherrypy.expose
def config(self):
return '<!DOCTYPE html><html><head><title>[uplink] configuration</title><meta ' + \
return '<!DOCTYPE html><html><head><title>[uplink@' + \
self.__configuration.get_env_var("_hostname") + '] configuration</title><meta ' + \
'http-equiv="refresh" content="60"></head><body><pre ' + \
'style="border:2px solid black;background:#1d2021;color:#f0751a;">' + \
json.dumps(vars(self.__configuration), sort_keys=True, indent=4) + \