Add domain prefetch, fix ping issue

This commit is contained in:
Nick Peng
2019-02-06 16:57:05 +08:00
parent f02dffdf95
commit 36ddca0491
4 changed files with 28 additions and 2 deletions

View File

@@ -217,6 +217,11 @@ load_service() {
conf_append "dualstack-ip-selection" "yes"
fi
config_get "prefetch_domain" "$section" "prefetch_domain" "0"
if [ "$prefetch_domain" = "1" ]; then
conf_append "prefetch-domain" "yes"
fi
SMARTDNS_PORT="$port"
config_get "cache_size" "$section" "cache_size" ""