restore ip4_any

This commit is contained in:
Ailin Nemui 2026-01-24 13:53:23 +01:00
commit 51322d6af1

View file

@ -81,6 +81,14 @@ int i_io_channel_read_block(GIOChannel *channel, void *data, int len)
return received < len ? -1 : 0;
}
IPADDR ip4_any = { AF_INET,
#if defined(IN6ADDR_ANY_INIT)
IN6ADDR_ANY_INIT
#else
{ INADDR_ANY }
#endif
};
static void sin_set_ip(union sockaddr_union *so, const IPADDR *ip)
{
if (ip == NULL) {