]> git.meshlink.io Git - meshlink/commit
Fix logic in try_bind().
authorGuus Sliepen <guus@meshlink.io>
Tue, 25 Feb 2020 19:39:48 +0000 (20:39 +0100)
committerGuus Sliepen <guus@meshlink.io>
Tue, 25 Feb 2020 19:39:48 +0000 (20:39 +0100)
commitb5aaabe0fcb104ef7801a68f4f9e6b77732dbb28
tree0549b5c0fb90bc6de0f4fcf63df4326c99a464ef
parent781514e1c7f1fece3e4fee12e21815ebcab18f71
Fix logic in try_bind().

Fix the check for successful socket creation. Also make sure we only
return success if we can bind to IPv4 and IPv6, but ignore other
network protocols.
src/meshlink.c