aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormesaoptimizer <contact.git@mesaoptimizer.com>2023-12-10 17:25:02 +0100
committerselsta <selsta@sent.at>2023-12-10 22:08:05 +0100
commit01c6e4b4ad7efd4a857c86dd09c9310dabc0b042 (patch)
treeea6d0e5dab5e950edc581a420ed2dbea958f5b55
parentMerge pull request #9050 (diff)
downloadmonero-01c6e4b4ad7efd4a857c86dd09c9310dabc0b042.tar.xz
OpenBSD: node server fix IP localhost by aliasing
The test node_server.bind_same_p2p_port fails by default on OpenBSD for at least the debug build. Using the same ifconfig command as described for MacOS results in the test passing.
-rw-r--r--tests/unit_tests/node_server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit_tests/node_server.cpp b/tests/unit_tests/node_server.cpp
index 747778c69..6f490d7b9 100644
--- a/tests/unit_tests/node_server.cpp
+++ b/tests/unit_tests/node_server.cpp
@@ -306,8 +306,8 @@ TEST(node_server, bind_same_p2p_port)
Relevant part about REUSEADDR from man:
https://www.man7.org/linux/man-pages/man7/ip.7.html
- For Mac OSX, set the following alias, before running the test, or else it will fail:
- sudo ifconfig lo0 alias 127.0.0.2
+ For Mac OSX and OpenBSD, set the following alias (by running the command as root), before running the test, or else it will fail:
+ ifconfig lo0 alias 127.0.0.2
*/
vm.find(nodetool::arg_p2p_bind_ip.name)->second = boost::program_options::variable_value(std::string("127.0.0.2"), false);
vm.find(nodetool::arg_p2p_bind_port.name)->second = boost::program_options::variable_value(std::string(port), false);