simpleproxy icon indicating copy to clipboard operation
simpleproxy copied to clipboard

Feature suggestion: IPv6 support

Open sbrl opened this issue 4 years ago • 4 comments

I just tried to use simpleproxy with an IPv6 remote, but it didn't appear to like it very much. A quick glance at the source code suggests that IPv6 is not supported yet (e.g. parse_host_port doesn't check for IPv6 addresses I guess).

IPv6 is the future, so it'd be great if it was supported here.

sbrl avatar Feb 14 '21 03:02 sbrl

This is correct, simpleproxy doesn't support IPv6 at the moment, unfortunately. I'll see if this can be implemented.

vlad1 avatar Feb 15 '21 18:02 vlad1

I find I have a need for this myself. I am using simple proxy 3.4 on FreeBSD 12. If this is still the primary location for this project, I can assist by adding that support. (I'm 90% sure)

cross avatar Apr 27 '22 13:04 cross

Sorry for the delayed response. Yes, this is the primary repository. Contributions are always welcome. Please submit at PR and we will review it. Please keep code portable, so it will compile on Linux or other Unix-es as well. Thanks!

vzaliva avatar May 03 '22 21:05 vzaliva

Okay. I'm working on this, for anyone's information. I thought it would take a few hours, but I had to dust off this knowledge in my head, and then found some peculiarities. I think there may be some FreeBSD issues that I'll have to consider separately on other Ones.

A question for you @vzaliva , what are your feelings on whether a "disable IPv6" should be a compile-time option, and do you require a -4 and/or -6 command-line option to prohibit address families? (The more of this I keep/add, the more complicated the code looks...)

cross avatar Jun 12 '22 00:06 cross