0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-19 19:33:45 +02:00

ircd::net::dns: Add fallback to internal table if netdb not installed.

This commit is contained in:
Jason Volk 2023-02-06 11:55:30 -08:00
parent e6a77a80d6
commit 9134684812

View file

@ -172,9 +172,7 @@ ircd::net::dns::service_port(std::nothrow_t,
const string_view &name,
const string_view &prot)
{
//TODO: XXX
always_assert(false);
return 0;
return _service_port(name, prot);
}
#endif
@ -256,9 +254,7 @@ ircd::net::dns::service_name(std::nothrow_t,
const uint16_t &port,
const string_view &prot)
{
//TODO: XXX
always_assert(false);
return {};
return strlcpy(out, _service_name(port, prot));
}
#endif