Explorar el Código

Check if _create_unverified_context is supported before using it: forgotten file

master
Krzysztof Kwiatkowski hace 8 años
padre
commit
f7b5db4b52
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      juniper-vpn.py

+ 3
- 1
juniper-vpn.py Ver fichero

@@ -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()



Cargando…
Cancelar
Guardar