mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #7886
1b7a708
Mac: UT node server fix IP localhost by aliasing (mj-xmr)
This commit is contained in:
commit
75ee729a3a
@ -303,6 +303,9 @@ 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
|
||||
*/
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user