diff --git a/code/default/download.md b/code/default/download.md index 99c9cdb6b0..03eb5bb811 100644 --- a/code/default/download.md +++ b/code/default/download.md @@ -10,9 +10,9 @@ -测试版(Test version 4.12.0): -[Win10 版下载](https://github.com/XX-net/XX-Net/releases/download/4.12.0/XX-Net-win10-4.12.0.7z) -[Win7 版下载](https://github.com/XX-net/XX-Net/releases/download/4.12.0/XX-Net-win7-4.12.0.7z) -[Mac 版下载](https://github.com/XX-net/XX-Net/releases/download/4.12.0/XX-Net-mac-4.12.0.7z) -[Linux 版下载](https://github.com/XX-net/XX-Net/archive/4.12.0.zip) -[Android版下载](https://github.com/XX-net/XX-Net/releases/download/4.12.0/XX-Net-4.12.0.apk) +测试版(Test version 4.12.1): +[Win10 版下载](https://github.com/XX-net/XX-Net/releases/download/4.12.1/XX-Net-win10-4.12.1.7z) +[Win7 版下载](https://github.com/XX-net/XX-Net/releases/download/4.12.1/XX-Net-win7-4.12.1.7z) +[Mac 版下载](https://github.com/XX-net/XX-Net/releases/download/4.12.1/XX-Net-mac-4.12.1.7z) +[Linux 版下载](https://github.com/XX-net/XX-Net/archive/4.12.1.zip) +[Android版下载](https://github.com/XX-net/XX-Net/releases/download/4.12.1/XX-Net-4.12.1.apk) diff --git a/code/default/lib/noarch/front_base/tlslite_wrap.py b/code/default/lib/noarch/front_base/tlslite_wrap.py index 24591aa46d..e47757adf9 100644 --- a/code/default/lib/noarch/front_base/tlslite_wrap.py +++ b/code/default/lib/noarch/front_base/tlslite_wrap.py @@ -78,11 +78,16 @@ def get_cert(self): from asn1crypto.x509 import Certificate cert = Certificate.load(cert) + try: + altName = cert.subject_alt_name_value.native + except: + altName = [] + self.peer_cert = { "cert": cert, "issuer_commonname": cert.issuer.human_friendly, "commonName": "", - "altName": cert.subject_alt_name_value.native + "altName": altName } return self.peer_cert @@ -157,6 +162,7 @@ def __init__(self, logger, ca_certs=None, cipher_suites=None, support_http2=True self.settings = HandshakeSettings() self.support_alpn_npn = None + self.alpn = [] if support_http2: self.alpn = [ bytearray(b"h2"), diff --git a/code/default/version.txt b/code/default/version.txt index bcd250ed08..2efddba74b 100644 --- a/code/default/version.txt +++ b/code/default/version.txt @@ -1 +1 @@ -4.12.0 \ No newline at end of file +4.12.1 \ No newline at end of file