mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Fix vProto init.
This commit is contained in:
parent
781f06ef82
commit
cc4d0199e7
2 changed files with 1 additions and 1 deletions
|
@ -55,6 +55,7 @@ Peer::Peer(const Identity &myIdentity,const Identity &peerIdentity)
|
||||||
_lastDirectPathPushSent(0),
|
_lastDirectPathPushSent(0),
|
||||||
_lastDirectPathPushReceived(0),
|
_lastDirectPathPushReceived(0),
|
||||||
_lastPathSort(0),
|
_lastPathSort(0),
|
||||||
|
_vProto(0),
|
||||||
_vMajor(0),
|
_vMajor(0),
|
||||||
_vMinor(0),
|
_vMinor(0),
|
||||||
_vRevision(0),
|
_vRevision(0),
|
||||||
|
|
|
@ -330,7 +330,6 @@ public:
|
||||||
*/
|
*/
|
||||||
inline void setRemoteVersion(unsigned int vproto,unsigned int vmaj,unsigned int vmin,unsigned int vrev)
|
inline void setRemoteVersion(unsigned int vproto,unsigned int vmaj,unsigned int vmin,unsigned int vrev)
|
||||||
{
|
{
|
||||||
Mutex::Lock _l(_lock);
|
|
||||||
_vProto = (uint16_t)vproto;
|
_vProto = (uint16_t)vproto;
|
||||||
_vMajor = (uint16_t)vmaj;
|
_vMajor = (uint16_t)vmaj;
|
||||||
_vMinor = (uint16_t)vmin;
|
_vMinor = (uint16_t)vmin;
|
||||||
|
|
Loading…
Add table
Reference in a new issue