commit 7eba6cf172e7ada59c9bf0f7210cbdbfd3828127
parent b77bece9c96da98b19100a7505831b314a9792e6
Author: nickfarrow <nicholas.w.farrow@gmail.com>
Date: Tue, 7 Dec 2021 16:54:32 +1100
Fix optional SSH/unix domain socket forwarding configs
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/config.py b/config.py
@@ -32,7 +32,7 @@ pay_method = get_opt("pay_method", "bitcoind")
lnd_dir = get_opt("lnd_dir", "~/.lnd/")
lnd_rpcport = get_opt("lnd_rpcport", "10009")
lnd_macaroon = get_opt("lnd_macaroon", "admin.macaroon")
-clightning_rpc_file = get_opt("clightning_rpc_file", "/home/user/.lightning/lightning-rpc")
+clightning_rpc_file = get_opt("clightning_rpc_file", None)
pollrate = get_opt("pollrate", 15)
payment_timeout = get_opt("payment_timeout", 60*60)
required_confirmations = get_opt("required_confirmations", 2)
diff --git a/gateways/ssh_tunnel.py b/gateways/ssh_tunnel.py
@@ -71,11 +71,11 @@ if config.tunnel_host is not None:
tunnel_proc = open_tunnel(config.tunnel_host, config.rpcport)
# Also for lnd if enabled
- if "lnd_rpcport" in config.__dict__.keys():
+ if config.lnd_rpcport is not None:
open_tunnel(config.tunnel_host, config.lnd_rpcport)
# And if clightning is enabled
- if "clightning_rpc_file" in config.__dict__.keys():
+ if config.clightning_rpc_file is not None:
clightning_unix_domain_socket_ssh()
time.sleep(2)