kopia lustrzana https://github.com/micropython/micropython-lib
upip: Add server_hostname param to ussl.wrap_socket() call.
rodzic
7522c14183
commit
e8053fb06a
|
@ -122,7 +122,7 @@ def url_open(url):
|
||||||
s.connect(addr)
|
s.connect(addr)
|
||||||
|
|
||||||
if proto == "https:":
|
if proto == "https:":
|
||||||
s = ussl.wrap_socket(s)
|
s = ussl.wrap_socket(s, server_hostname=host)
|
||||||
if warn_ussl:
|
if warn_ussl:
|
||||||
print("Warning: %s SSL certificate is not validated" % host)
|
print("Warning: %s SSL certificate is not validated" % host)
|
||||||
warn_ussl = False
|
warn_ussl = False
|
||||||
|
|
Ładowanie…
Reference in New Issue