mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 13:03:45 +02:00
Tiny bit of dead code cleanup.
This commit is contained in:
parent
13036a1085
commit
d3dacf5c2a
1 changed files with 1 additions and 15 deletions
|
@ -312,21 +312,7 @@ void Peer::pushDirectPaths(const RuntimeEnvironment *RR,Path *path,uint64_t now,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t flags = 0;
|
outp.append((uint8_t)0); // no flags
|
||||||
/* TODO: path trust is not implemented yet
|
|
||||||
switch(p->trust()) {
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
case Path::TRUST_PRIVACY:
|
|
||||||
flags |= 0x04; // no encryption
|
|
||||||
break;
|
|
||||||
case Path::TRUST_ULTIMATE:
|
|
||||||
flags |= (0x04 | 0x08); // no encryption, no authentication (redundant but go ahead and set both)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
outp.append(flags);
|
|
||||||
outp.append((uint16_t)0); // no extensions
|
outp.append((uint16_t)0); // no extensions
|
||||||
outp.append(addressType);
|
outp.append(addressType);
|
||||||
outp.append((uint8_t)((addressType == 4) ? 6 : 18));
|
outp.append((uint8_t)((addressType == 4) ? 6 : 18));
|
||||||
|
|
Loading…
Add table
Reference in a new issue