diff --git a/modules/netns-isolation.nix b/modules/netns-isolation.nix index 9d5e164..fa36387 100644 --- a/modules/netns-isolation.nix +++ b/modules/netns-isolation.nix @@ -210,8 +210,8 @@ in { ]; rpcallowip = [ "127.0.0.1" - ] ++ lib.lists.concatMap (s: [ - "${netns.${s}.address}" + ] ++ lib.lists.concatMap (n: [ + "${netns.${n}.address}" ]) netns.bitcoind.availableNetns; cli = pkgs.writeScriptBin "bitcoin-cli" '' netns-exec nb-bitcoind ${config.services.bitcoind.package}/bin/bitcoin-cli -datadir='${config.services.bitcoind.dataDir}' "$@" @@ -253,8 +253,8 @@ in { ]; rpcallowip = [ "127.0.0.1" - ] ++ lib.lists.concatMap (s: [ - "${netns.${s}.address}" + ] ++ lib.lists.concatMap (n: [ + "${netns.${n}.address}" ]) netns.liquidd.availableNetns; mainchainrpchost = netns.bitcoind.address; cli = pkgs.writeScriptBin "elements-cli" ''