connect_socket: fix proto bug
This commit is contained in:
@@ -25,7 +25,7 @@ class WorkerJob():
|
|||||||
|
|
||||||
def connect_socket(self):
|
def connect_socket(self):
|
||||||
srv = random.choice(config.servers).strip()
|
srv = random.choice(config.servers).strip()
|
||||||
protos = ['http', 'socks5', 'socks4'] if self.proto is None else self.proto
|
protos = ['http', 'socks5', 'socks4'] if self.proto is None else [self.proto]
|
||||||
|
|
||||||
for proto in protos:
|
for proto in protos:
|
||||||
torhost = random.choice(config.torhosts)
|
torhost = random.choice(config.torhosts)
|
||||||
|
|||||||
Reference in New Issue
Block a user