From def9482e9df694e6851bb70a47532c61ab2cc187 Mon Sep 17 00:00:00 2001 From: KiekerJan Date: Sat, 2 Nov 2024 20:39:29 +0100 Subject: [PATCH] work --- management/daemon.py | 13 +++++++++++++ management/templates/custom-dns.html | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/management/daemon.py b/management/daemon.py index ac47e8853..439e54669 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -406,6 +406,11 @@ def dns_get_zonefile(zone): @app.route('/dns/advanced-dns') @authorized_personnel_only def dns_get_advanced_dns_options(): + # Is hidden master available? + + # If yes, provide current value of hidden master in JSON response + + # Provide current value of short TTL return json_response({ "hiddenmaster_enabled": False, "hiddenmaster_selected": True, "short_ttl_selected": True }) @@ -414,6 +419,14 @@ def dns_get_advanced_dns_options(): def dns_set_advanced_dns_options(): try: + # Is hidden master available? + + # If yes, store the hidden master selection in configuration + + # Store the value of short TTL selected + + # If anything changed, kick a DNS update + # We do nothing yet logging.debug(f"Hidden master selected value {request.form.get('hiddenmaster_selected')} of type {type(request.form.get('hiddenmaster_selected'))}") logging.debug(f"Short ttl selected value {request.form.get('short_ttl_selected')} of type {type(request.form.get('hiddenmaster_selected'))}") diff --git a/management/templates/custom-dns.html b/management/templates/custom-dns.html index cc591fcc9..2431eb9d6 100644 --- a/management/templates/custom-dns.html +++ b/management/templates/custom-dns.html @@ -136,7 +136,7 @@

Short TTL