fix: resolverdns
modificata la posizione della chiamata, ora in launcher riattivato il checkdns
This commit is contained in:
+1
-6
@@ -384,9 +384,6 @@ def proxy_post_processing(url, proxy_data, response, opt):
|
|||||||
|
|
||||||
def downloadpage(url, **opt):
|
def downloadpage(url, **opt):
|
||||||
logger.info()
|
logger.info()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Open a url and return the data obtained
|
Open a url and return the data obtained
|
||||||
|
|
||||||
@@ -428,9 +425,7 @@ def downloadpage(url, **opt):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
load_cookies()
|
load_cookies()
|
||||||
#import requests
|
import requests
|
||||||
### Raggiunge i siti con i DNS dopati... ###
|
|
||||||
from specials import resolverdns
|
|
||||||
from lib import cloudscraper
|
from lib import cloudscraper
|
||||||
|
|
||||||
# Headers by default, if nothing is specified
|
# Headers by default, if nothing is specified
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
import updater
|
import updater
|
||||||
|
from specials import resolverdns
|
||||||
import urllib2
|
import urllib2
|
||||||
|
|
||||||
from core import channeltools
|
from core import channeltools
|
||||||
@@ -34,9 +35,9 @@ def start():
|
|||||||
# se lo ha: non lo fa entrare nell'addon
|
# se lo ha: non lo fa entrare nell'addon
|
||||||
# se ha problemi di DNS avvia ma lascia entrare
|
# se ha problemi di DNS avvia ma lascia entrare
|
||||||
# se tutto ok: entra nell'addon
|
# se tutto ok: entra nell'addon
|
||||||
## from specials.checkhost import test_conn
|
from specials.checkhost import test_conn
|
||||||
## import threading
|
import threading
|
||||||
## threading.Thread(target=test_conn, args=(True, True, True, [], [], True)).start()
|
threading.Thread(target=test_conn, args=(True, True, True, [], [], True)).start()
|
||||||
# check_adsl = test_conn(is_exit = True, check_dns = True, view_msg = True,
|
# check_adsl = test_conn(is_exit = True, check_dns = True, view_msg = True,
|
||||||
# lst_urls = [], lst_site_check_dns = [], in_addon = True)
|
# lst_urls = [], lst_site_check_dns = [], in_addon = True)
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import dns.name
|
|||||||
import socket
|
import socket
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
res = dns.resolver.Resolver(configure=False)
|
res = dns.resolver.Resolver(configure=True)
|
||||||
|
|
||||||
res.nameservers = ['1.1.1.1', '2606:4700:4700::1111',
|
res.nameservers = ['1.1.1.1', '2606:4700:4700::1111',
|
||||||
'1.0.0.1', '2606:4700:4700::1001' ]
|
'1.0.0.1', '2606:4700:4700::1001' ]
|
||||||
|
|||||||
Reference in New Issue
Block a user