From 00e1b6ca089705e7fdb4764133058e04111e36df Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Mon, 6 May 2019 16:15:47 +0300 Subject: [PATCH] * dnsfilter: use 'https' for safe-browsing and parental control --- dnsfilter/dnsfilter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnsfilter/dnsfilter.go b/dnsfilter/dnsfilter.go index 221f6383..b9292f5f 100644 --- a/dnsfilter/dnsfilter.go +++ b/dnsfilter/dnsfilter.go @@ -29,9 +29,9 @@ const defaultHTTPTimeout = 5 * time.Minute const defaultHTTPMaxIdleConnections = 100 const defaultSafebrowsingServer = "sb.adtidy.org" -const defaultSafebrowsingURL = "http://%s/safebrowsing-lookup-hash.html?prefixes=%s" +const defaultSafebrowsingURL = "https://%s/safebrowsing-lookup-hash.html?prefixes=%s" const defaultParentalServer = "pctrl.adguard.com" -const defaultParentalURL = "http://%s/check-parental-control-hash?prefixes=%s&sensitivity=%d" +const defaultParentalURL = "https://%s/check-parental-control-hash?prefixes=%s&sensitivity=%d" const maxDialCacheSize = 2 // the number of host names for safebrowsing and parental control // ErrInvalidSyntax is returned by AddRule when the rule is invalid