mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-16 13:01:04 +02:00
Fix reading lng host config (#53)
This commit is contained in:
parent
1fcd601bac
commit
256fc292da
1 changed files with 3 additions and 1 deletions
|
|
@ -38,7 +38,9 @@ def load_lightning_client(config) -> LNDLightningClient:
|
|||
def load_lightning_host_port(config) -> LNDLightningClient:
|
||||
if int(config['server']['price']) == 0:
|
||||
return None
|
||||
lnd_host = config['lnd']['external_host'] or config['lnd']['host']
|
||||
lnd_host = config['lnd']['host']
|
||||
if 'external_host' in config['lnd']:
|
||||
lnd_host = config['lnd']['external_host']
|
||||
lnd_port = int(config['lnd']['port'])
|
||||
return LightningAddressHostPort(
|
||||
lnd_host,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue