php-socks5 icon indicating copy to clipboard operation
php-socks5 copied to clipboard

Proxy does not work With telegram and proxifier when AUTH_ENABLED

Open irghost opened this issue 6 years ago • 3 comments

Proxy does not work With telegram and proxifier when AUTH_ENABLED

irghost avatar Dec 13 '18 08:12 irghost

I have faced the same problem: if i set AUTH_ENABLED=1 then python requests failed with error: Failed to establish a new connection: SOCKS5 proxy server sent invalid data

katin-dev avatar Mar 26 '19 10:03 katin-dev

Try fix it ! in case STAGE_AUTH: we must change

$connection->send("\x05\x00");

to

$connection->send("\x01\x00");

and

$connection->send("\x05\x01");

to

$connection->send("\x01\x01");

I don't why but client lib check version number (1 bytes) = 1

nvthaovn avatar Jun 23 '19 21:06 nvthaovn

I have the same issue, any update? it does not work with $AUTH_ENABLED = true;

yuseferi avatar Jun 14 '20 15:06 yuseferi