5 Commits
Author SHA1 Message Date
Claude 22662bcbb3 Merge main into PR #4: take retrossl's newer version alongside quic-go
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRT3AtPQKxosM1CfP2s
2026-11-12 18:12:13 +00:00
Claude 25a0fe0eb1 Fetch over HTTP/3 and pass gRPC through CONNECT tunnels
HTTP/3: sites that offer h3 in Alt-Svc are reached over QUIC (quic-go),
falling back to TCP for ten minutes when QUIC fails. RemoteHttpVersion
takes 3.0 (=3.0 forces it, <3.0 turns it off). Not used through an
UpperProxy or without TLS 1.3.

gRPC: in decrypted CONNECT tunnels to 443, clients that offer only h2 in
ALPN get HTTP/2 and are reverse-proxied to the site over HTTP/2, streamed
both ways with trailers. NonHttpSslServers tunnels now mirror ALPN to the
server, so h2 works through them too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSqXQt9VziEWCfxcMo
2026-11-11 13:30:15 +00:00
Claude 86afe907d9 Use retrossl's session resumption; take its new ciphers
retrossl now has session resumption, renegotiation, IDEA and RC2. Old
clients through CONNECT resume their sessions, which spares slow
machines an RSA decryption per connection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRH4kntyPfrY1bFWC3
2026-11-11 13:26:13 +00:00
Claude 485fe73af6 Serve SSL 2.0 and 3.0 clients through retrossl
CONNECT's handshake now looks at the client's first bytes: SSL
2.0-format hellos and SSL 3.0-only hellos go to retrossl, everything else
to Go's TLS. Ssl2 and Ssl3 in SslProtocols turn them on (SSL 3.0 is on
by default), SslCipherSuites accepts retrossl's suite names, and the
program allows the export suites' 512-bit keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRH4kntyPfrY1bFWC3
2026-11-11 13:03:17 +00:00
Claude 81bb843396 Port WebOne 0.19.0 to Go
A Go translation of WebOne (github.com/atauenis/webone, commit e940b43),
the HTTP 1.x proxy that lets old browsers use today's web: config loader
with sets of edits and .NET regular expressions, the HTTP/1.0-1.1 server
with keep-alive, HTTPS fetching and patching, code pages, the CONNECT
proxy (MITM, pass-through, non-HTTP tunnels), the CA and site certificates
(MD5/SHA-1 signing included), internal and error pages, Web Archive
fallback, converters, web FTP client and online video.

WebOne's licence, configuration files and html pages are kept. Go-only
options: SslCaDirectory signs with the D-Modem BBS's proxy sub-CA (or its
root), SslTrustOwnCA, and DnsServer. README lists the differences: no SSL
2.0/3.0 in Go's TLS, and the upstream bugs fixed on purpose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRH4kntyPfrY1bFWC3
2026-11-11 12:34:29 +00:00