tor: use socks4 instead of socks5

This commit is contained in:
mickael
2019-01-04 21:58:30 +00:00
parent 563f3323ab
commit 0c271de1d7

2
ppf.py
View File

@@ -156,7 +156,7 @@ if __name__ == '__main__':
database = parser.get('global', 'database')
search = parser.getboolean('proxyfind', 'search')
tor_hosts = parser.get('global', 'tor_host').split(',')
proxies={'http':'socks5://%s' % random.choice(tor_hosts),'https':'socks5://%s' % random.choice(tor_hosts)}
proxies={'http':'socks4://%s' % random.choice(tor_hosts),'https':'socks4://%s' % random.choice(tor_hosts)}
sqlite = mysqlite.mysqlite(database, str)