1
0
Fork 0
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:
Elizabeth Myers 2016-03-09 03:46:04 -06:00
parent 503727d1ee
commit 6445c1cf0b
7 changed files with 48 additions and 2 deletions
ircd

View file

@ -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)
{