1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2024-12-27 00:12:31 +01:00

Change the user agent

This commit is contained in:
Frank Denis 2019-08-27 18:26:29 +02:00
parent 5f29677400
commit 77f2eef886

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: