Bugfix: QA: rpc_bind: Skip nonloopback test if no such address is found

This commit is contained in:
Luke Dashjr
2025-09-13 23:04:56 +00:00
parent 8a9ffec0a2
commit 79b4c276e7

View File

@@ -84,7 +84,10 @@ class RPCBindTest(BitcoinTestFramework):
if not self.options.run_nonloopback:
self._run_loopback_tests()
if not self.options.run_ipv4 and not self.options.run_ipv6:
self._run_nonloopback_tests()
if self.non_loopback_ip:
self._run_nonloopback_tests()
else:
self.log.info('Non-loopback IP address not found, skipping non-loopback tests')
def _run_loopback_tests(self):
if self.options.run_ipv4: