mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-29 10:43:14 +00:00
Merge pull request #6789
bdcf587
net: fix get_tcp_endpoint, boost address_v4 ip in host byte order (xiphon)
This commit is contained in:
commit
2d8a197b91
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ namespace net
|
||||||
case epee::net_utils::ipv4_network_address::get_type_id():
|
case epee::net_utils::ipv4_network_address::get_type_id():
|
||||||
{
|
{
|
||||||
const auto &ipv4 = parsed->as<epee::net_utils::ipv4_network_address>();
|
const auto &ipv4 = parsed->as<epee::net_utils::ipv4_network_address>();
|
||||||
result = boost::asio::ip::tcp::endpoint(boost::asio::ip::address_v4(ipv4.ip()), ipv4.port());
|
result = boost::asio::ip::tcp::endpoint(boost::asio::ip::address_v4(SWAP32BE(ipv4.ip())), ipv4.port());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case epee::net_utils::ipv6_network_address::get_type_id():
|
case epee::net_utils::ipv6_network_address::get_type_id():
|
||||||
|
|
Loading…
Reference in a new issue