Fix SPTPS condition in try_harder().
A condition in try_harder() is always evaluating to false when talking
to a SPTPS node because n->status.validkey_in is always false in that
case. Fix the condition so that the SPTPS status is correctly checked.
This prevented recent tinc-1.1 nodes from talking to older, pre-node-ID
tinc-1.1 nodes.
The regression was introduced in
6056f1c13b
.
This commit is contained in:
parent
01d2519862
commit
643149b449
1 changed files with 1 additions and 1 deletions
|
@ -1350,7 +1350,7 @@ static node_t *try_harder(const sockaddr_t *from, const vpn_packet_t *pkt) {
|
||||||
if(!n->status.reachable || n == myself)
|
if(!n->status.reachable || n == myself)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if((n->status.sptps && !n->sptps.instate) || !n->status.validkey_in)
|
if(!n->status.validkey_in && !(n->status.sptps && n->sptps.instate))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
bool soft = false;
|
bool soft = false;
|
||||||
|
|
Loading…
Reference in a new issue