This reverts commit 744468ea78
.
This commit is contained in:
parent
4349b6fa63
commit
4693f40990
3 changed files with 0 additions and 33 deletions
|
@ -7,8 +7,6 @@ import (
|
|||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/coredns/caddy"
|
||||
"github.com/coredns/coredns/core/dnsserver"
|
||||
|
@ -63,25 +61,6 @@ func setup(c *caddy.Controller) error {
|
|||
return nil
|
||||
})
|
||||
|
||||
wildWarner := time.NewTicker(10 * time.Second)
|
||||
c.OnStartup(func() error {
|
||||
go func() {
|
||||
for {
|
||||
select {
|
||||
case <-wildWarner.C:
|
||||
if wc := atomic.SwapUint64(&wildCount, 0); wc > 0 {
|
||||
log.Warningf("%d deprecated wildcard queries received. Wildcard queries will no longer be supported in the next minor release.", wc)
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return nil
|
||||
})
|
||||
c.OnShutdown(func() error {
|
||||
wildWarner.Stop()
|
||||
return nil
|
||||
})
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue