mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-21 01:42:18 +00:00
Never send a unicast probe over a packet radio link
This commit is contained in:
parent
84ad4debfa
commit
33da5ee2da
@ -251,6 +251,10 @@ int overlay_send_probe(struct subscriber *peer, struct sockaddr_in addr, overlay
|
||||
if (!interface)
|
||||
return WHY("I don't know which interface to use");
|
||||
|
||||
// never send unicast probes over packet radio
|
||||
if (interface->type==OVERLAY_INTERFACE_PACKETRADIO)
|
||||
return 0;
|
||||
|
||||
time_ms_t now = gettime_ms();
|
||||
|
||||
if (peer && peer->last_probe+1000>now)
|
||||
|
Loading…
x
Reference in New Issue
Block a user