Skip to content

Commit

Permalink
Changes the onion hidden service port to match the clearnet API port
Browse files Browse the repository at this point in the history
Turns out both the clearnet API and the Tor hidden service can be run on the same
port.
  • Loading branch information
sr-gi committed Nov 10, 2022
1 parent 6f10736 commit f5dccf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion teos/src/conf_template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
api_bind = "127.0.0.1"
api_port = 9814
tor_control_port = 9051
onion_hidden_service_port = 2121
onion_hidden_service_port = 9814
tor_support = false

# RPC
Expand Down
4 changes: 2 additions & 2 deletions teos/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub struct Opt {
#[structopt(long)]
pub tor_control_port: Option<u16>,

/// Port for the onion hidden service to listen on [default: 2121]
/// Port for the onion hidden service to listen on [default: 9814]
#[structopt(long)]
pub onion_hidden_service_port: Option<u16>,
}
Expand Down Expand Up @@ -257,7 +257,7 @@ impl Default for Config {
api_port: 9814,
tor_support: false,
tor_control_port: 9051,
onion_hidden_service_port: 2121,
onion_hidden_service_port: 9814,
rpc_bind: "127.0.0.1".into(),
rpc_port: 8814,
btc_network: "mainnet".into(),
Expand Down

0 comments on commit f5dccf4

Please sign in to comment.