aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.inl
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-07-02 18:04:44 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-07-02 18:06:04 +0100
commit909398efc79cb1fa92e330e9a50a316ca5858953 (patch)
tree91032808823a9cd5266690c9c06fcc74c426d1e3 /src/p2p/net_node.inl
parentMerge pull request #4067 (diff)
downloadmonero-909398efc79cb1fa92e330e9a50a316ca5858953.tar.xz
p2p: connect via the bound ip, if any
Diffstat (limited to '')
-rw-r--r--src/p2p/net_node.inl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
index 85470f799..014c3e9c1 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -934,7 +934,7 @@ namespace nodetool
bool res = m_net_server.connect(epee::string_tools::get_ip_string_from_int32(ipv4.ip()),
epee::string_tools::num_to_string_fast(ipv4.port()),
m_config.m_net_config.connection_timeout,
- con);
+ con, m_bind_ip.empty() ? "0.0.0.0" : m_bind_ip);
if(!res)
{
@@ -999,7 +999,7 @@ namespace nodetool
bool res = m_net_server.connect(epee::string_tools::get_ip_string_from_int32(ipv4.ip()),
epee::string_tools::num_to_string_fast(ipv4.port()),
m_config.m_net_config.connection_timeout,
- con);
+ con, m_bind_ip.empty() ? "0.0.0.0" : m_bind_ip);
if (!res) {
bool is_priority = is_priority_node(na);
@@ -1614,7 +1614,7 @@ namespace nodetool
return false;
}
return true;
- });
+ }, m_bind_ip.empty() ? "0.0.0.0" : m_bind_ip);
if(!r)
{
LOG_WARNING_CC(context, "Failed to call connect_async, network error.");