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:
parent
5f29677400
commit
77f2eef886
@ -92,7 +92,7 @@ def print_restricted_name(name, time_restrictions):
|
|||||||
|
|
||||||
def load_from_url(url):
|
def load_from_url(url):
|
||||||
sys.stderr.write("Loading data from [{}]\n".format(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
|
trusted = False
|
||||||
|
|
||||||
if URLLIB_NEW:
|
if URLLIB_NEW:
|
||||||
|
Loading…
Reference in New Issue
Block a user