juise / erlysocks

Erlang Socks5 server
Other
2 stars 1 forks source link

erlysocks does not work with curl #1

Open afiskon opened 11 years ago

afiskon commented 11 years ago

Возможно, я делал что-то не так, но, кажется, сервер не работает, если попытаться скачать что-нибудь через него curl'ом.

Например, если сказать:

curl --socks5 localhost:1080 http://mail.ru -N -o -

в логах появляется:

18:23:12.745 [error] gen_server <0.68.0> terminated with reason: no function clause matching gen_tcp:send(undefined, <<5,2,0,1>>) line 261
18:23:12.746 [error] CRASH REPORT Process <0.68.0> with 0 neighbours exited with reason: no function clause matching gen_tcp:send(undefined, <<5,2,0,1>>) line 261 in gen_server:terminate/6 line 747
18:23:12.747 [error] Supervisor erlysocks_cli_sup had child erlysocks_cli started with {erlysocks_cli,start_link,undefined} at <0.68.0> exit with reason no function clause matching gen_tcp:send(undefined, <<5,2,0,1>>) line 261 in context child_terminated
^Cmake: *** [run] Interrupt

Тестировал под Ubuntu 12.10 на Erlang R16B.

juise commented 11 years ago

Привет, все правильно делал, это было допущение на момент разработки и тестирования через браузер. Закоммитил исправление.