mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2024-12-26 00:02:34 +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):
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user