]> git.meshlink.io Git - meshlink/commitdiff
Don't send UDP probes to tiny nodes. feature/better-pmtu-probes
authorGuus Sliepen <guus@meshlink.io>
Sun, 26 Sep 2021 22:20:25 +0000 (00:20 +0200)
committerGuus Sliepen <guus@meshlink.io>
Fri, 8 Oct 2021 18:57:24 +0000 (20:57 +0200)
src/pmtu.c

index 0d5e8fd528ba59821ce43ed10bba555104924685..179d89665ef3d41a46a099e6a9d14538c2249442 100644 (file)
@@ -410,7 +410,7 @@ static void try_pmtu(meshlink_handle_t *mesh, node_t *n) {
  */
 
 void keepalive(meshlink_handle_t *mesh, node_t *n, bool traffic) {
-       if(!n->status.reachable || !n->status.validkey) {
+       if(!n->status.reachable || !n->status.validkey || n->status.tiny) {
                return;
        }