diff options
| author | tobtoht <tob@featherwallet.org> | 2026-06-30 09:55:16 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2026-06-30 09:55:16 +0000 |
| commit | de95c4f993bfd0fc4df07ee7fb6fccbdbe0493ac (patch) | |
| tree | be63930acb0d59c2a6a4d6d12fca77bf82b7b5c4 /src/cryptonote_protocol | |
| parent | e1cbca2cf588eb767eeb16d74563e40e898c7d08 (diff) | |
| parent | 7c543c82205c3522510e8da616edc795922ce9f3 (diff) | |
| download | monzero-core-de95c4f993bfd0fc4df07ee7fb6fccbdbe0493ac.tar.gz monzero-core-de95c4f993bfd0fc4df07ee7fb6fccbdbe0493ac.tar.xz monzero-core-de95c4f993bfd0fc4df07ee7fb6fccbdbe0493ac.zip | |
Merge pull request #10611
7c543c8 daemon: fix print_cn command when 0 connections (jeffro256)
528cbac Show IPv6 addresses in connection list (Guillaume Le Vaillant)
ACKs: tobtoht, j-berman
Diffstat (limited to 'src/cryptonote_protocol')
| -rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index cf6830f64..aaa93f21d 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -378,6 +378,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; |
