mirror of
https://github.com/monero-project/monero.git
synced 2025-11-28 08:40:47 -05:00
Fix IP address serialization on big endian
IP addresses are stored in network byte order even on little endian hosts
This commit is contained in:
parent
c1fa4a7f8c
commit
bc1144e98e
2 changed files with 17 additions and 1 deletions
|
|
@ -95,7 +95,9 @@ namespace boost
|
|||
{
|
||||
uint32_t ip{na.ip()};
|
||||
uint16_t port{na.port()};
|
||||
ip = SWAP32LE(ip);
|
||||
a & ip;
|
||||
ip = SWAP32LE(ip);
|
||||
a & port;
|
||||
if (!typename Archive::is_saving())
|
||||
na = epee::net_utils::ipv4_network_address{ip, port};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue