]> git.meshlink.io Git - meshlink/commit - src/net_setup.c
Check the return value of check_port().
authorGuus Sliepen <guus@meshlink.io>
Tue, 1 May 2018 12:10:45 +0000 (14:10 +0200)
committerGuus Sliepen <guus@meshlink.io>
Tue, 1 May 2018 12:10:45 +0000 (14:10 +0200)
commit43ffcfc3c3fcd8088a77e9a2ac9cc4013c466158
tree9347f9c0ebfc344ba30e250024af267e689bab57
parent408027022fef38fe0ae1a83e9bd5c47029434224
Check the return value of check_port().

When initializing a new MeshLink instance, fail if there is no port
available for listening. When starting an already configured instance,
if no Port statement is found in the local node's host config file,
select and add a new one.
src/meshlink.c
src/meshlink_internal.h
src/net_setup.c