]> git.meshlink.io Git - meshlink/commit - src/meshlink.c
Use getsockname() to get a listening sockets actual address in meshlink_stop().
authorGuus Sliepen <guus@meshlink.io>
Mon, 21 May 2018 20:03:47 +0000 (22:03 +0200)
committerGuus Sliepen <guus@meshlink.io>
Mon, 21 May 2018 20:03:47 +0000 (22:03 +0200)
commit56e0dd5ad3936663d398500f80c9a502553659df
tree1bb1d1aec0a83554ff5c0d3aad5f0851d59fdaff
parent7afe8daaf5ba221968a3e2beff61fa653f497cb1
Use getsockname() to get a listening sockets actual address in meshlink_stop().

This should be better than sending a packet to the listening address,
which might be a link-local address for which a valid scope-id is
necessary, and which might not be in listen_socket.sa.
src/meshlink.c