[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] ..on SOCKS5 support

From: Steffen Nurpmeso
Subject: Re: [Lynx-dev] ..on SOCKS5 support
Date: Sun, 15 Sep 2019 00:04:18 +0200
User-agent: s-nail v14.9.15-64-ge271e7b3

Oh, hello and good evening, for auld lang syne!

Steffen Nurpmeso wrote in <address@hidden>:
 |please excuse the late reply.

Terrible!  I apologise for the silence.


Thomas Dickey wrote in <20190907195941.c2gqjhnuj2pp44az@prl-debianold-64\>:
 |On Sat, Sep 07, 2019 at 08:51:26PM +0200, Steffen Nurpmeso wrote:
 |> 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...


Thomas Dickey wrote in <20190910092328.5aevtmukues22322@prl-debianold-64\>:
 |On Mon, Sep 09, 2019 at 03:43:59PM +0200, Steffen Nurpmeso wrote:
 |> Thomas Dickey wrote in <20190908105750.qc3ut2e3rkrswfm4@prl-debianold-64\
 |>|If you have something that works reasonably well on one of the BSDs,
 |>|making it more portable (adding configure checks, command-line options,
 |>|etc.) is fairly routine.
 |> That is BSD socket code + read(2) + write(2).
 |> I will throw an eye as soon as possible, and report back then, ok?
 |sounds good

Right.  So here is a working patch, porting over my own SOCKS5
code with slight adjustments for lynx.  It took hours to realize
that PARSE_HOST requires a protocol prefix, _what_a_mess_.  Note
the diff was finally produced on v2-8-9rel_1, i tried several tags
from v2-9-0dev_4a downwards, but could not get something
compilable.  (But git cherry-pick'ing the patch worked.)
I hope you like it, it works fine for me here?

Ciao, and a nice Sunday i wish from Germany!

|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Attachment: lynx-socks5.diff
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]