curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Supporting socks proxy via unix sockets

From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Fri, 15 Apr 2022 11:32:27 +0200 (CEST)

On Mon, 11 Apr 2022, Dan Fandrich via curl-users wrote:

> My preference is still for the file: style triple-slash syntax
> socks5h:///path/to/socks.sock but it sounds like that won't work without
> changes to the URL parser. Given that a normal socks path will never use the
> path portion of the URL, it means the host part could be pretty flexible. So
> much so that the host part could be completely ignored if a path of any sort
> exists in the URL (I'm not suggesting we do that, though).

Maybe we could require "localhost" as hostname and if the URL then has a path
it means it is a unix-socket and not a "normal one"?

Like this:

   socks5h://localhost/path/to/socks.sock

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-04-15