mirror of
https://github.com/pissnet/angiosperm.git
synced 2025-05-04 02:25:03 +01:00
rehash: don't restart authd for DNS reloads
This could lead to pretty nasty things, like losing DNS (and in the future, ident) queries. That's a Bad Thing™.
This commit is contained in:
parent
503727d1ee
commit
6445c1cf0b
7 changed files with 48 additions and 2 deletions
ircd
14
ircd/dns.c
14
ircd/dns.c
|
@ -322,6 +322,20 @@ init_nameserver_cache(void)
|
|||
(void)get_nameservers(get_nameservers_cb, NULL);
|
||||
}
|
||||
|
||||
bool
|
||||
reload_nameservers(void)
|
||||
{
|
||||
if(authd_helper == NULL)
|
||||
{
|
||||
/* Shit */
|
||||
return false;
|
||||
}
|
||||
rb_helper_write(authd_helper, "C D");
|
||||
init_nameserver_cache();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
submit_dns(uint16_t nid, char type, const char *addr)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue