Change the user agent

This commit is contained in:
Frank Denis 2019-08-27 18:26:29 +02:00
parent 5f29677400
commit 77f2eef886
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ def print_restricted_name(name, time_restrictions):
def load_from_url(url):
sys.stderr.write("Loading data from [{}]\n".format(url))
req = urllib.Request(url)
req = urllib.Request(url=url, headers={"User-Agent": "dnscrypt-proxy"})
trusted = False
if URLLIB_NEW: