fix "verify internet" for nethunter

This commit is contained in:
Usama Abdul Sattar 2019-07-30 15:55:23 +05:00 committed by GitHub
parent eca4890b4d
commit 7056186f56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,12 +4,17 @@
#
import multiprocessing
import gettext
from os import system,environ
import sys
import ssl
if(not environ.get('PYTHONHTTPSVERIFY',"") and getattr(ssl,'_create_unverified_context',None)):
ssl._create_default_https_context=ssl._create_unverified_context
from Defs.Checks import *
from Defs.Configurations import *
from Defs.Actions import *
from Defs.Languages import *
from os import system
RED, WHITE, CYAN, GREEN, DEFAULT = '\033[91m', '\033[46m', '\033[36m', '\033[1;32m', '\033[0m'
checkPermissions()