Skip to content

cuprated: add Auto option for Tor#578

Open
redsh4de wants to merge 5 commits intoCuprate:mainfrom
redsh4de:feat/tor-auto
Open

cuprated: add Auto option for Tor#578
redsh4de wants to merge 5 commits intoCuprate:mainfrom
redsh4de:feat/tor-auto

Conversation

@redsh4de
Copy link

@redsh4de redsh4de commented Feb 7, 2026

What

Adds Auto option for Tor config. Depends on PR #549

Closes #548

Why

UX improvement for Tor setup

Where

  • cuprated:
    • tor.rs - updated TorMode enum with Auto, added TorMode::Auto resolution in initialize_tor_if_enabled
    • config.rs & p2p.rs - added extra match arm for TorMode::Auto - should be unreachable by that stage
    • config/tor.rs - updated doc
  • p2p/p2p-transport:
    • socks.rs - add a lightweight is_socks5_proxy function to check if the specified tor.daemon.address is valid & reachable. used in cuprated/tor.rs for TorMode resolution

@github-actions github-actions bot added A-p2p Area: Related to P2P. A-binaries Area: Related to binaries. labels Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-binaries Area: Related to binaries. A-p2p Area: Related to P2P.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto option for Tor

2 participants