mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 02:02:38 +01:00
ircd::net::dns: Add fallback to internal table if netdb not installed.
This commit is contained in:
parent
e6a77a80d6
commit
9134684812
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue