mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
update for pyasn1 0.3
This commit is contained in:
parent
69bc145228
commit
97abb0a656
@ -480,10 +480,8 @@ class SSLCert(serializable.Serializable):
|
||||
except PyAsn1Error:
|
||||
continue
|
||||
for i in dec[0]:
|
||||
if i[0] is None and isinstance(i[1], univ.OctetString) and not isinstance(i[1], char.IA5String):
|
||||
# This would give back the IP address: b'.'.join([str(e).encode() for e in i[1].asNumbers()])
|
||||
continue
|
||||
else:
|
||||
if i[0].hasValue():
|
||||
e = i[0].asOctets()
|
||||
altnames.append(e)
|
||||
altnames.append(e)
|
||||
|
||||
return altnames
|
||||
|
Loading…
Reference in New Issue
Block a user