Development
This commit is contained in:
parent
6d9aac0460
commit
59ac3c5973
20 changed files with 1466 additions and 1 deletions
11
docker/routlin-dash/app/pages/dnsserver/view.py
Normal file
11
docker/routlin-dash/app/pages/dnsserver/view.py
Normal 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),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue