Skip to content

Commit

Permalink
Merge pull request #6789
Browse files Browse the repository at this point in the history
bdcf587 net: fix get_tcp_endpoint, boost address_v4 ip in host byte order (xiphon)
  • Loading branch information
luigi1111 committed Aug 31, 2020
2 parents 77ffea0 + bdcf587 commit 2d8a197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 2d8a197

Please sign in to comment.