mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-21 16:29:20 -04:00
asb: only start tor client if register_hidden_service=true in the config
This commit is contained in:
parent
a854b8f14f
commit
a8e02e0921
@ -159,7 +159,11 @@ pub async fn main() -> Result<()> {
|
||||
let namespace = XmrBtcNamespace::from_is_testnet(testnet);
|
||||
|
||||
// Initialize Tor client
|
||||
let tor_client = init_tor_client(&config.data.dir).await?.into();
|
||||
let tor_client = if config.tor.register_hidden_service {
|
||||
init_tor_client(&config.data.dir).await?.into()
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
let (mut swarm, onion_addresses) = swarm::asb(
|
||||
&seed,
|
||||
|
Loading…
x
Reference in New Issue
Block a user