mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 23:40:25 -04:00
Merge pull request #8703
c90c1c3
Show IPv6 addresses in connection list (Guillaume Le Vaillant)
This commit is contained in:
commit
57c58fd5bd
2 changed files with 15 additions and 3 deletions
|
@ -281,6 +281,11 @@ namespace cryptonote
|
|||
cnx.ip = cnx.host;
|
||||
cnx.port = std::to_string(cntxt.m_remote_address.as<epee::net_utils::ipv4_network_address>().port());
|
||||
}
|
||||
else if (cntxt.m_remote_address.get_type_id() == epee::net_utils::ipv6_network_address::get_type_id())
|
||||
{
|
||||
cnx.ip = cnx.host;
|
||||
cnx.port = std::to_string(cntxt.m_remote_address.as<epee::net_utils::ipv6_network_address>().port());
|
||||
}
|
||||
cnx.rpc_port = cntxt.m_rpc_port;
|
||||
cnx.rpc_credits_per_hash = cntxt.m_rpc_credits_per_hash;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue