mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-30 09:48:54 +00:00
Bump the peer cache serialization version due to path changes, will cause peers to be re-learned. Technically the peer cache is optional anyway so it's not going to break anything and should guard against weird issues due to path learning changes on restart.
This commit is contained in:
parent
4bdf0317c3
commit
34a64f30de
@ -438,7 +438,7 @@ public:
|
||||
template<unsigned int C>
|
||||
inline void serializeForCache(Buffer<C> &b) const
|
||||
{
|
||||
b.append((uint8_t)1);
|
||||
b.append((uint8_t)2);
|
||||
|
||||
_id.serialize(b);
|
||||
|
||||
@ -466,7 +466,7 @@ public:
|
||||
{
|
||||
try {
|
||||
unsigned int ptr = 0;
|
||||
if (b[ptr++] != 1)
|
||||
if (b[ptr++] != 2)
|
||||
return SharedPtr<Peer>();
|
||||
|
||||
Identity id;
|
||||
|
Loading…
Reference in New Issue
Block a user