diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-08-31 16:58:13 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-08-31 16:58:13 -0500 |
commit | 2d8a197b9163c2fc3f3da8fddee7c6a1d30fd4ac (patch) | |
tree | 05083e1dea734cb5a3d7f3f713f869ad74a550d3 | |
parent | Merge pull request #6788 (diff) | |
parent | net: fix get_tcp_endpoint, boost address_v4 ip in host byte order (diff) | |
download | monero-2d8a197b9163c2fc3f3da8fddee7c6a1d30fd4ac.tar.xz |
Merge pull request #6789
bdcf587 net: fix get_tcp_endpoint, boost address_v4 ip in host byte order (xiphon)
-rw-r--r-- | src/net/parse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/parse.cpp b/src/net/parse.cpp index 95b22cd44..8a98e941a 100644 --- a/src/net/parse.cpp +++ b/src/net/parse.cpp @@ -138,7 +138,7 @@ namespace net case epee::net_utils::ipv4_network_address::get_type_id(): { 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; } case epee::net_utils::ipv6_network_address::get_type_id(): |