瀏覽代碼

Check if _create_unverified_context is supported before using it: forgotten file

master
Krzysztof Kwiatkowski 8 年之前
父節點
當前提交
f7b5db4b52
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      juniper-vpn.py

+ 3
- 1
juniper-vpn.py 查看文件

@@ -19,7 +19,8 @@ import hashlib
import shlex
import tncc

ssl._create_default_https_context = ssl._create_unverified_context
if hasattr(ssl, '_create_unverified_context'):
ssl._create_default_https_context = ssl._create_unverified_context

"""
OATH code from https://github.com/bdauvergne/python-oath
@@ -283,3 +284,4 @@ if __name__ == "__main__":
jvpn = juniper_vpn(args)
jvpn.run()



Loading…
取消
儲存