Re: ..on SOCKS5 support

Thomas Dickey <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <20190907195941.c2gqjhnuj2pp44az@prl-debianold-64.jexium-island.net>
On Sat, Sep 07, 2019 at 08:51:26PM +0200, Steffen Nurpmeso wrote:
> Hello.
> 
> I was forced to use lynx via SOCKS5 proxy, which i never did
> before.  To my surprise that did not work, it needs an additional
> library.  That increased the surprise, because all one needs for
> SOCKS5 support, even including the DNS lookup, is to hook
> connect(2) -- that is how i did it, as easy as [1].  And in fact

That's changed over time - there's no standard/portable implementation
of socks5, and (the last time I looked...) none of the extent versions
corresponded to what lynx worked with long ago :-)

> i became inspired by Gaetan Bisson's usocks-06.c, which can be
> used via $LD_PRELOAD, and which got me going.  I will attach it.
> 
> Wouldn't it be much nicer if there would be a -socks=[HOST]:PORT
> command line argument and a simple, always compiled in, wrapper
> around connect, just the way i do it (in [1])?

that's a thought...

> Just in case i find time and the mentioned way seems interesting,
> is there somewhere the current development code can be loaded
> from?
> 
>   [1] https://git.sdaoden.eu/cgit/s-nail.git/tree/src/mx/net-socket.c#n485

I put snapshots here, as I make development changes:

	https://github.com/ThomasDickey/lynx-snapshots

but don't accept pull-requests -- see

	https://invisible-island.net/personal/git-exports.html

-- 
Thomas E. Dickey <[email protected]>
https://invisible-island.net
ftp://ftp.invisible-island.net

_______________________________________________
Lynx-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lynx-dev
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQTFIEjAwHSP7iJ9R6JwI1Pg9+SO2wUCXXQMKgAKCRBwI1Pg9+SO
2yIQAKCwKM7qDbsETtiuFbRUKqXe4nnYLgCgu36d5poo/aJRobR2l8//XSnZZY8=
=2uGN
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.