Check for DNS rebinding attacks

This commit is contained in:
Reinaldo de Souza Jr
2020-12-01 18:36:04 +01:00
parent 2313eda123
commit b338bf9b3f
7 changed files with 230 additions and 15 deletions

View File

@@ -122,6 +122,7 @@ func (s *Server) WriteDiskConfig(c *FilteringConfig) {
c.DisallowedClients = stringArrayDup(sc.DisallowedClients)
c.BlockedHosts = stringArrayDup(sc.BlockedHosts)
c.UpstreamDNS = stringArrayDup(sc.UpstreamDNS)
c.RebindingAllowedHosts = stringArrayDup(sc.RebindingAllowedHosts)
s.RUnlock()
}