mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
Move always-use-proxy auto-override to master daemon.
This means it will effect connect commands too (though it's too late to stop DNS lookups caused by commandline options). We also warn that this is one case where we allow forcing through Tor without a proxy set: it just means all connections will fail. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -152,7 +152,8 @@ static void json_connect(struct command *cmd,
|
||||
port = DEFAULT_PORT;
|
||||
}
|
||||
if (!parse_wireaddr_internal(name, &addr, port, false,
|
||||
!cmd->ld->use_proxy_always,
|
||||
!cmd->ld->use_proxy_always
|
||||
&& !cmd->ld->pure_tor_setup,
|
||||
&err_msg)) {
|
||||
command_fail(cmd, "Host %s:%u not valid: %s",
|
||||
name, port, err_msg ? err_msg : "port is 0");
|
||||
|
||||
Reference in New Issue
Block a user