rtl: fix lnd, lightning-loop connection errors

lnd and lightning-loop resolve `localhost` to an IPv4 address when
creating RPC sockets.

Since NixOS 23.05, RTL (nodejs) resolves `localhost` to an IPv6
address when connecting to lnd and lightning-loop, which leads to
connection errors.

To fix these and other potential errors, replace all instances
of `localhost` with `127.0.0.1`.
This commit is contained in:
Erik Arvstedt 2023-07-29 18:58:55 +02:00
parent d8954ec8dd
commit 14ca8b461b
No known key found for this signature in database
GPG key ID: 33312B944DD97846
7 changed files with 17 additions and 17 deletions

View file

@ -6,7 +6,7 @@ let
enable = mkEnableOption "Lightning Pool, a marketplace for inbound lightning liquidity ";
rpcAddress = mkOption {
type = types.str;
default = "localhost";
default = "127.0.0.1";
description = mdDoc "Address to listen for gRPC connections.";
};
rpcPort = mkOption {