connect_socket: fix proto bug

This commit is contained in:
mickael
2019-01-06 19:43:05 +00:00
parent 91654d4b9e
commit 0ab3a6d066

View File

@@ -25,7 +25,7 @@ class WorkerJob():
def connect_socket(self):
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:
torhost = random.choice(config.torhosts)