try_harder() in only needed in legacy-protocol
This commit is contained in:
parent
b7fe5910d6
commit
deccb83a29
1 changed files with 6 additions and 1 deletions
|
@ -1436,15 +1436,20 @@ static void handle_incoming_vpn_packet(listen_socket_t *ls, vpn_packet_t *pkt, s
|
|||
if(from && !memcmp(DSTID(pkt), &nullid, sizeof nullid) && from->status.sptps) {
|
||||
if(sptps_verify_datagram(&from->sptps, DATA(pkt), pkt->len - 2 * sizeof(node_id_t)))
|
||||
n = from;
|
||||
else
|
||||
#ifndef DISABLE_LEGACY
|
||||
else {
|
||||
goto skip_harder;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef DISABLE_LEGACY
|
||||
if(!n) {
|
||||
pkt->offset = 0;
|
||||
n = try_harder(addr, pkt);
|
||||
}
|
||||
#endif
|
||||
|
||||
skip_harder:
|
||||
if(!n) {
|
||||
|
|
Loading…
Reference in a new issue