Merge fort-nix/nix-bitcoin#437: bitcoind: fix error when defining passwordHMAC for RPC users
bf92d6094d
bitcoind: fix error when defining passwordHMAC for RPC users (Erik Arvstedt) Pull request description: ACKs for top commit: jonasnick: ACKbf92d6094d
Tree-SHA512: 3a92c116c7e85cb03abad9b2d0be39c48be237da4a7ff2b6c20d27e9295da726b3de2d7e2298925b4ae20d7bbd8348529f4d2ec781fb8eda3338c9a06e9931a6
This commit is contained in:
commit
ed42834a88
@ -318,7 +318,7 @@ let
|
|||||||
${optionalString (cfg.rpc.threads != null) "rpcthreads=${toString cfg.rpc.threads}"}
|
${optionalString (cfg.rpc.threads != null) "rpcthreads=${toString cfg.rpc.threads}"}
|
||||||
rpcwhitelistdefault=0
|
rpcwhitelistdefault=0
|
||||||
${concatMapStrings (user: ''
|
${concatMapStrings (user: ''
|
||||||
${optionalString (!user.passwordHMACFromFile) "rpcauth=${user.name}:${passwordHMAC}"}
|
${optionalString (!user.passwordHMACFromFile) "rpcauth=${user.name}:${user.passwordHMAC}"}
|
||||||
${optionalString (user.rpcwhitelist != [])
|
${optionalString (user.rpcwhitelist != [])
|
||||||
"rpcwhitelist=${user.name}:${lib.strings.concatStringsSep "," user.rpcwhitelist}"}
|
"rpcwhitelist=${user.name}:${lib.strings.concatStringsSep "," user.rpcwhitelist}"}
|
||||||
'') (builtins.attrValues cfg.rpc.users)
|
'') (builtins.attrValues cfg.rpc.users)
|
||||||
|
Loading…
Reference in New Issue
Block a user