Cannot use SOCKS5 proxies
Request: GET /api/v1/timelines/public?local=true&only_media=false&with_muted=true&limit=20
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in :inet_tcp.getserv/1
(kernel 7.3.1.2) inet_tcp.erl:55: :inet_tcp.getserv("9050")
(kernel 7.3.1.2) gen_tcp.erl:181: :gen_tcp.connect1/4
(kernel 7.3.1.2) gen_tcp.erl:165: :gen_tcp.connect/4
(hackney 1.15.2) /opt/pleroma/deps/hackney/src/hackney_socks5.erl:65: :hackney_socks5.connect/4
(hackney 1.15.2) /opt/pleroma/deps/hackney/src/hackney_connect.erl:277: :hackney_connect.do_connect/5
(hackney 1.15.2) /opt/pleroma/deps/hackney/src/hackney_connect.erl:47: :hackney_connect.connect/5
(hackney 1.15.2) /opt/pleroma/deps/hackney/src/hackney.erl:333: :hackney.request/5
(tesla 1.4.0) lib/tesla/adapter/hackney.ex:71: Tesla.Adapter.Hackney.request/5
This happens with any port. What's weird is, the traceback includes :inet_tcp.getserv("9050")
but that is the port I configured. I don't know why the traceback includes a hardcoded string. Anyway it looks like the fix is just to pass an int to :inet_tcp.getserv rather than a string for the port.