mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
options: check that combinations of TOR options are valid.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -594,6 +594,12 @@ static void check_config(struct lightningd *ld)
|
|||||||
|
|
||||||
if (ld->config.anchor_confirms == 0)
|
if (ld->config.anchor_confirms == 0)
|
||||||
fatal("anchor-confirms must be greater than zero");
|
fatal("anchor-confirms must be greater than zero");
|
||||||
|
|
||||||
|
if (ld->config.tor_enable_auto_hidden_service && !ld->tor_serviceaddr)
|
||||||
|
fatal("--tor-auto-listen needs --tor-service");
|
||||||
|
|
||||||
|
if (ld->use_tor_proxy_always && !ld->tor_proxyaddr)
|
||||||
|
fatal("--always-use-tor-proxy needs --proxy");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setup_default_config(struct lightningd *ld)
|
static void setup_default_config(struct lightningd *ld)
|
||||||
|
|||||||
Reference in New Issue
Block a user