mirror of
https://github.com/monero-project/monero.git
synced 2025-02-23 02:00:24 +02:00
Merge pull request #9084
01c6e4b
OpenBSD: node server fix IP localhost by aliasing (mesaoptimizer)
This commit is contained in:
commit
36addc1e56
@ -306,8 +306,8 @@ TEST(node_server, bind_same_p2p_port)
|
|||||||
Relevant part about REUSEADDR from man:
|
Relevant part about REUSEADDR from man:
|
||||||
https://www.man7.org/linux/man-pages/man7/ip.7.html
|
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:
|
For Mac OSX and OpenBSD, set the following alias (by running the command as root), before running the test, or else it will fail:
|
||||||
sudo ifconfig lo0 alias 127.0.0.2
|
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_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);
|
vm.find(nodetool::arg_p2p_bind_port.name)->second = boost::program_options::variable_value(std::string(port), false);
|
||||||
|
Loading…
Reference in New Issue
Block a user