From 37a34f82ac2e625588375e7743733971f3563322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Olav?= Date: Thu, 14 Nov 2024 07:42:41 +0100 Subject: [PATCH] bitwindow/enforcer: connnect to bitcoind at 0.0.0.0 not localhost --- clients/bitwindow/lib/servers/enforcer_rpc.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/clients/bitwindow/lib/servers/enforcer_rpc.dart b/clients/bitwindow/lib/servers/enforcer_rpc.dart index b3b1afc2..a7ccba3f 100644 --- a/clients/bitwindow/lib/servers/enforcer_rpc.dart +++ b/clients/bitwindow/lib/servers/enforcer_rpc.dart @@ -36,10 +36,15 @@ class EnforcerLive extends EnforcerRPC { @override Future> binaryArgs(NodeConnectionSettings mainchainConf) async { + var host = mainchainConf.host; + if (host == 'localhost') { + host = '0.0.0.0'; + } + return [ '--node-rpc-pass=${mainchainConf.password}', '--node-rpc-user=${mainchainConf.username}', - '--node-rpc-addr=${mainchainConf.host}:${mainchainConf.port}', + '--node-rpc-addr=$host:${mainchainConf.port}', '--node-zmq-addr-sequence=tcp://0.0.0.0:29000', '--enable-wallet', ];