]> git.meshlink.io Git - meshlink/commit
Don't add duplicates to the list of recently seen addresses.
authorGuus Sliepen <guus@meshlink.io>
Fri, 6 Dec 2019 20:47:11 +0000 (21:47 +0100)
committerGuus Sliepen <guus@meshlink.io>
Fri, 6 Dec 2019 20:47:11 +0000 (21:47 +0100)
commit703197ca7614963ba9b831967352b6c90379af48
tree988a8f287ac9696949b71b39e83648f85e01df5b
parentd665704b718634614856db2e0455e1cb60048771
Don't add duplicates to the list of recently seen addresses.

Duplicate addresses would be appended to the list, and could push out other
addresses. If the address already exists, only move it to the top if it is
not already there.

Also don't force an immediate write of the host config file when trying to
add an address that already exists.
src/discovery.c
src/meshlink.c
src/node.c
src/node.h