Clear DNS cache when DNS resolver config changes in any way

This commit is contained in:
Daniel
2022-03-30 16:21:44 +02:00
parent 0c5bdbbc13
commit a92410fe27
3 changed files with 31 additions and 11 deletions

View File

@@ -12,7 +12,7 @@ func registerAPI() error {
Path: "dns/clear",
Write: api.PermitUser,
BelongsTo: module,
ActionFunc: clearNameCache,
ActionFunc: clearNameCacheHandler,
Name: "Clear cached DNS records",
Description: "Deletes all saved DNS records from the database.",
}); err != nil {