fix: resolverdns
modificata la posizione della chiamata, ora in launcher riattivato il checkdns
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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' ]
|
||||
|
||||
Reference in New Issue
Block a user