mirror of
https://github.com/GOSTSec/gostcoin
synced 2025-01-30 08:24:20 +00:00
correct serialization
This commit is contained in:
parent
9e59c9b64e
commit
9b0b7a6bee
@ -91,7 +91,7 @@ class CNetAddr
|
|||||||
READWRITE(FLATDATA(ip));
|
READWRITE(FLATDATA(ip));
|
||||||
if (!(nType & SER_IPADDRONLY))
|
if (!(nType & SER_IPADDRONLY))
|
||||||
{
|
{
|
||||||
READWRITE(FLATDATA(i2pDest));
|
READWRITE(i2pDest);
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
@ -136,7 +136,7 @@ class CService : public CNetAddr
|
|||||||
READWRITE(FLATDATA(ip));
|
READWRITE(FLATDATA(ip));
|
||||||
if (!(nType & SER_IPADDRONLY))
|
if (!(nType & SER_IPADDRONLY))
|
||||||
{
|
{
|
||||||
READWRITE(FLATDATA(i2pDest));
|
READWRITE(i2pDest);
|
||||||
}
|
}
|
||||||
unsigned short portN = htons(port);
|
unsigned short portN = htons(port);
|
||||||
READWRITE(portN);
|
READWRITE(portN);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user