Add auth for socks5

This commit is contained in:
Dionysus 2023-09-17 11:44:55 -04:00
parent d011286fa1
commit 6d0390a90c
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -147,7 +147,7 @@ class clone():
if self.proxy: if self.proxy:
options = { options = {
'proxy' : aiosocks.Socks5Addr(self.proxy.split(':')[0], int(self.proxy.split(':')[1])), 'proxy' : aiosocks.Socks5Addr(self.proxy.split(':')[0], int(self.proxy.split(':')[1])),
'proxy_auth' : None, 'proxy_auth' : None, # Todo: Auth support using aiosocks.Socks5Auth('login', 'pwd') here
'dst' : (self.server['server'], self.server['ssl'] if self.server['ssl'] and self.ssl_status else 6667), 'dst' : (self.server['server'], self.server['ssl'] if self.server['ssl'] and self.ssl_status else 6667),
'limit' : 1024, 'limit' : 1024,
'ssl' : ssl_ctx() if self.server['ssl'] and self.ssl_status else None, 'ssl' : ssl_ctx() if self.server['ssl'] and self.ssl_status else None,