PyRoxy
PyRoxy copied to clipboard
Incorrect parsing results for proxies with username and password
Hi Matrix Team,
I am a user of MHDDoS and I would like to use my private proxies requiring basic authentication. It seems that both ProxyUtiles.parseAllIPPort and ProxyUtiles.parseNoraml are returning incorrect results.
Example: Input
http://1.2.3.4:5678@username:password
Syntax from https://github.com/MatrixTM/MHDDoS/issues/243#issuecomment-1066600371
Output
parseAllIPPort returns None.
parseNoraml returns
{Proxy} http://1.2.3.4:80:5678@username:password
country = {str} 'AU'
host = {str} '1.2.3.4'
password = {str} 'password'
port = {int} 80
type = {ProxyType} ProxyType.HTTP
user = {str} '5678@username'
I am not an expert of regex. Could you kindly have a look at this issue please? Thanks.