Development

This commit is contained in:
Matthew Grotke 2026-06-02 00:47:03 -04:00
parent 6d9aac0460
commit 59ac3c5973
20 changed files with 1466 additions and 1 deletions

View file

@ -0,0 +1,11 @@
import json
def collect_tokens(cfg):
dns = cfg.get('upstream_dns', {})
servers = dns.get('upstream_servers', [])
return {
'DNS_STRICT_ORDER': 'true' if dns.get('strict_order') else 'false',
'DNS_CACHE_SIZE': str(dns.get('cache_size', '-')),
'DNS_UPSTREAM_SERVERS_JSON': json.dumps(servers),
}