Fix: crash when dns not set

This commit is contained in:
Dreamacro
2018-12-05 21:52:31 +08:00
parent f192d591c7
commit f93d6aa294
4 changed files with 19 additions and 10 deletions

View File

@ -100,15 +100,15 @@ external-controller: 127.0.0.1:9090
# secret: ""
dns:
enable: true # set true to enable dns
ipv6: false # default is false
listen: 0.0.0.0:53
enhanced-mode: redir-host
nameserver:
- 114.114.114.114
- tls://dns.rubyfish.cn:853 # dns over tls
fallback: # concurrent request with nameserver, fallback used when GEOIP country isn't CN
- 8.8.8.8
# enable: true # set true to enable dns (default is false)
# ipv6: false # default is false
# listen: 0.0.0.0:53
# enhanced-mode: redir-host
# nameserver:
# - 114.114.114.114
# - tls://dns.rubyfish.cn:853 # dns over tls
# fallback: # concurrent request with nameserver, fallback used when GEOIP country isn't CN
# - 8.8.8.8
Proxy: