Skip to content

feat(proxy): add HTTP/HTTPS proxy support via all_proxy#987

Merged
calmh merged 2 commits intosyncthing:mainfrom
luizluca:http_proxy
Apr 26, 2026
Merged

feat(proxy): add HTTP/HTTPS proxy support via all_proxy#987
calmh merged 2 commits intosyncthing:mainfrom
luizluca:http_proxy

Conversation

@luizluca
Copy link
Copy Markdown
Contributor

Update the proxying documentation to reflect support for HTTP and HTTPS proxies in addition to SOCKS5.

The documentation now describes:

  • Use of http:// and https:// proxy URLs via the all_proxy environment variable
  • Embedded basic authentication in proxy URLs
  • A warning when credentials are sent over cleartext HTTP proxies
  • Limitations of HTTP(S) proxies (outbound TCP only)

(related to syncthing/syncthing#10572)

Update the proxying documentation to reflect support for HTTP and HTTPS
proxies in addition to SOCKS5.

The documentation now describes:
- Use of http:// and https:// proxy URLs via the all_proxy environment
  variable
- Embedded basic authentication in proxy URLs
- A warning when credentials are sent over cleartext HTTP proxies
- Limitations of HTTP(S) proxies (outbound TCP only)

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
calmh added a commit to syncthing/syncthing that referenced this pull request Apr 26, 2026
Register HTTP and HTTPS proxy dialers and implement CONNECT-based
tunneling for HTTP proxies.

The new dialer supports:
- Plain HTTP proxies using CONNECT
- HTTPS proxies by performing a TLS handshake before CONNECT
- Optional basic authentication via Proxy-Authorization (with a warning
when creds are used over cleartext HTTP)

This allows all_proxy to be set to http:// or https:// URLs, enabling
data transfer through HTTP(S) proxies.

### Purpose

Allow peers to connect using HTTP Proxies (CONNECT)

### Testing

Tested with both HTTP and HTTPS proxy connection, using both no auth and
plain authentication.

### Screenshots

No visual change

### Documentation

syncthing/docs#987

## Authorship

Your name and email will be added automatically to the AUTHORS file
based on the commit metadata.

---------

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: Jakob Borg <jakob@kastelo.net>
Co-authored-by: Jakob Borg <jakob@kastelo.net>
Comment thread users/proxying.rst Outdated
@calmh calmh enabled auto-merge (squash) April 26, 2026 09:37
@calmh calmh changed the title users/proxy: HTTP/HTTPS proxy support via all_proxy feat(users/proxy): HTTP/HTTPS proxy support via all_proxy Apr 26, 2026
@calmh calmh changed the title feat(users/proxy): HTTP/HTTPS proxy support via all_proxy feat(proxy): HTTP/HTTPS proxy support via all_proxy Apr 26, 2026
@calmh calmh changed the title feat(proxy): HTTP/HTTPS proxy support via all_proxy feat(proxy): add HTTP/HTTPS proxy support via all_proxy Apr 26, 2026
@calmh calmh merged commit f9a9328 into syncthing:main Apr 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants