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:
+2
-2
@@ -279,13 +279,13 @@ let
|
||||
# lightning-loop contains no builtin swap server for regtest.
|
||||
# Add a dummy definition.
|
||||
services.lightning-loop.extraConfig = ''
|
||||
server.host=localhost
|
||||
server.host=127.0.0.1
|
||||
'';
|
||||
|
||||
# lightning-pool contains no builtin auction server for regtest.
|
||||
# Add a dummy definition
|
||||
services.lightning-pool.extraConfig = ''
|
||||
auctionserver=localhost
|
||||
auctionserver=127.0.0.1
|
||||
'';
|
||||
|
||||
# `validatepegin` is incompatible with regtest
|
||||
|
||||
Reference in New Issue
Block a user