Take the 0.6.0 opportunity to add flags to a few protocol verbs and do a bit more cleanup. Also fix it so certificates wont be accepted unless they are newer than existing ones.
This commit is contained in:
parent
555471200c
commit
ce14ba9004
7 changed files with 84 additions and 68 deletions
|
@ -265,6 +265,7 @@ bool Switch::unite(const Address &p1,const Address &p2,bool force)
|
|||
|
||||
{ // tell p1 where to find p2
|
||||
Packet outp(p1,_r->identity.address(),Packet::VERB_RENDEZVOUS);
|
||||
outp.append((unsigned char)0);
|
||||
p2.appendTo(outp);
|
||||
outp.append((uint16_t)cg.first.port());
|
||||
if (cg.first.isV6()) {
|
||||
|
@ -279,6 +280,7 @@ bool Switch::unite(const Address &p1,const Address &p2,bool force)
|
|||
}
|
||||
{ // tell p2 where to find p1
|
||||
Packet outp(p2,_r->identity.address(),Packet::VERB_RENDEZVOUS);
|
||||
outp.append((unsigned char)0);
|
||||
p1.appendTo(outp);
|
||||
outp.append((uint16_t)cg.second.port());
|
||||
if (cg.second.isV6()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue