clightning: add bindport option
This commit is contained in:
parent
b6179639fe
commit
d99ccc8445
3 changed files with 8 additions and 3 deletions
|
|
@ -227,7 +227,7 @@ in {
|
|||
# clightning: Custom netns configs
|
||||
services.clightning = mkIf config.services.clightning.enable {
|
||||
bitcoin-rpcconnect = netns.bitcoind.address;
|
||||
bind-addr = "${netns.clightning.address}:${toString config.services.clightning.onionport}";
|
||||
bind-addr = "${netns.clightning.address}:${toString config.services.clightning.bindport}";
|
||||
};
|
||||
|
||||
# lnd: Custom netns configs
|
||||
|
|
@ -307,7 +307,7 @@ in {
|
|||
# Custom netns config option values if netns-isolation not enabled
|
||||
(mkIf (!cfg.enable) {
|
||||
# clightning
|
||||
services.clightning.bind-addr = "127.0.0.1:${toString config.services.clightning.onionport}";
|
||||
services.clightning.bind-addr = "127.0.0.1:${toString config.services.clightning.bindport}";
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue