fix: resolverdns

modificata la posizione della chiamata, ora in launcher
riattivato il checkdns
This commit is contained in:
greko17
2019-11-29 14:43:15 +01:00
parent b12201bb8e
commit b7f7ffb3f0
3 changed files with 6 additions and 10 deletions

View File

@@ -384,9 +384,6 @@ def proxy_post_processing(url, proxy_data, response, opt):
def downloadpage(url, **opt):
logger.info()
"""
Open a url and return the data obtained
@@ -428,9 +425,7 @@ def downloadpage(url, **opt):
"""
load_cookies()
#import requests
### Raggiunge i siti con i DNS dopati... ###
from specials import resolverdns
import requests
from lib import cloudscraper
# Headers by default, if nothing is specified

View File

@@ -7,6 +7,7 @@ import os
import sys
import updater
from specials import resolverdns
import urllib2
from core import channeltools
@@ -34,9 +35,9 @@ def start():
# se lo ha: non lo fa entrare nell'addon
# se ha problemi di DNS avvia ma lascia entrare
# se tutto ok: entra nell'addon
## from specials.checkhost import test_conn
## import threading
## threading.Thread(target=test_conn, args=(True, True, True, [], [], True)).start()
from specials.checkhost import test_conn
import threading
threading.Thread(target=test_conn, args=(True, True, True, [], [], True)).start()
# check_adsl = test_conn(is_exit = True, check_dns = True, view_msg = True,
# lst_urls = [], lst_site_check_dns = [], in_addon = True)

View File

@@ -23,7 +23,7 @@ import dns.name
import socket
import requests
res = dns.resolver.Resolver(configure=False)
res = dns.resolver.Resolver(configure=True)
res.nameservers = ['1.1.1.1', '2606:4700:4700::1111',
'1.0.0.1', '2606:4700:4700::1001' ]