mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 23:10:54 +01:00
modules/s_dns: Tweak conf TTL defaults; use dynamic content buffer.
This commit is contained in:
parent
4677e5f443
commit
83dcfb05a0
1 changed files with 7 additions and 3 deletions
|
@ -359,14 +359,14 @@ decltype(ircd::net::dns::cache::nxdomain_ttl)
|
|||
ircd::net::dns::cache::nxdomain_ttl
|
||||
{
|
||||
{ "name", "ircd.net.dns.cache.nxdomain_ttl" },
|
||||
{ "default", 43200L },
|
||||
{ "default", 86400L },
|
||||
};
|
||||
|
||||
decltype(ircd::net::dns::cache::min_ttl)
|
||||
ircd::net::dns::cache::min_ttl
|
||||
{
|
||||
{ "name", "ircd.net.dns.cache.min_ttl" },
|
||||
{ "default", 1200L },
|
||||
{ "default", 28800L },
|
||||
};
|
||||
|
||||
decltype(ircd::net::dns::cache::room_id)
|
||||
|
@ -409,7 +409,11 @@ ircd::net::dns::cache::put(const hostport &hp,
|
|||
host(hp)
|
||||
};
|
||||
|
||||
char content_buf[768];
|
||||
const unique_buffer<mutable_buffer> content_buf
|
||||
{
|
||||
1_KiB
|
||||
};
|
||||
|
||||
json::stack out{content_buf};
|
||||
json::stack::object content{out};
|
||||
json::stack::array array
|
||||
|
|
Loading…
Reference in a new issue