From c4b5fd1eb1470210a33eb28e8939ece1e923b6f6 Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Thu, 10 Nov 2022 10:34:34 -0300 Subject: [PATCH] Changes the onion hidden service port to match the clearnet API port Turns out both the clearnet API and the Tor hidden service can be run on the same port. --- teos/src/conf_template.toml | 2 +- teos/src/config.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/teos/src/conf_template.toml b/teos/src/conf_template.toml index dea1b7b6..9540cb4a 100644 --- a/teos/src/conf_template.toml +++ b/teos/src/conf_template.toml @@ -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 diff --git a/teos/src/config.rs b/teos/src/config.rs index 61425131..01e2b752 100644 --- a/teos/src/config.rs +++ b/teos/src/config.rs @@ -106,7 +106,7 @@ pub struct Opt { #[structopt(long)] pub tor_control_port: Option, - /// 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, } @@ -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(),