remove unused "is_drone_bl()" function
This commit is contained in:
@@ -23,13 +23,6 @@ class WorkerJob():
|
||||
self.success_count = success_count
|
||||
self.total_duration = total_duration
|
||||
|
||||
def is_drone_bl(self, proxy):
|
||||
p = proxy.split(':')[0]
|
||||
proxies = {'http':'socks4://%s:%s@%s' % (p,p,random.choice(config.torhosts))}
|
||||
resp = requests.get('http://dronebl.org/lookup?ip=%s' % p, proxies=proxies)
|
||||
if 'No incidents regarding' in resp.text: return 0
|
||||
else: return 1
|
||||
|
||||
def connect_socket(self):
|
||||
srv = random.choice(config.servers).strip()
|
||||
protos = ['http', 'socks5', 'socks4'] if self.proto is None else self.proto
|
||||
@@ -87,7 +80,6 @@ class WorkerJob():
|
||||
if match is not None: match = match.country
|
||||
else: match = 'unknown'
|
||||
|
||||
#dronebl = self.is_drone_bl(proxy[0])
|
||||
self.proto = proto
|
||||
self.failcount = 0
|
||||
self.success_count = self.success_count + 1
|
||||
|
||||
Reference in New Issue
Block a user