1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/plat
Andy Green 8f19a3fa9a network interface: defer bindings to absent network interfaces
Previously down network interfaces without an IPv4 address are
removed from the posix api that lists network interfaces.

That means if you bound a vhost listen socket to a particular
interface, it will fail at startup time.

This patch adds these vhosts to a list, starts the vhost without
a listen socket, and checks to see if the vhost's network interface
has appeared while the rest of lws is running.

If it appears, the listen socket is opened on the network interface
and the vhost becomes reachable.
2018-04-06 10:38:03 +08:00
..
lws-plat-esp32.c network interface: defer bindings to absent network interfaces 2018-04-06 10:38:03 +08:00
lws-plat-optee.c plat optee: updates 2017-12-20 10:44:21 +08:00
lws-plat-unix.c network interface: defer bindings to absent network interfaces 2018-04-06 10:38:03 +08:00
lws-plat-win.c network interface: defer bindings to absent network interfaces 2018-04-06 10:38:03 +08:00