Browse Source

correct serialization

pull/29/head
orignal 7 years ago
parent
commit
9b0b7a6bee
  1. 4
      src/netbase.h

4
src/netbase.h

@ -91,7 +91,7 @@ class CNetAddr @@ -91,7 +91,7 @@ class CNetAddr
READWRITE(FLATDATA(ip));
if (!(nType & SER_IPADDRONLY))
{
READWRITE(FLATDATA(i2pDest));
READWRITE(i2pDest);
}
)
};
@ -136,7 +136,7 @@ class CService : public CNetAddr @@ -136,7 +136,7 @@ class CService : public CNetAddr
READWRITE(FLATDATA(ip));
if (!(nType & SER_IPADDRONLY))
{
READWRITE(FLATDATA(i2pDest));
READWRITE(i2pDest);
}
unsigned short portN = htons(port);
READWRITE(portN);

Loading…
Cancel
Save