diff options
author | 2022-07-10 20:06:33 +0200 | |
---|---|---|
committer | 2022-07-10 11:06:33 -0700 | |
commit | c2dbb7141a7c95aa521a41b27bed3af25de8f546 (patch) | |
tree | 3af5d63a0dccaa769507e34a32b6378ccef880c4 /core/dnsserver/server_https.go | |
parent | abc5ac8017b0f434b5845321fb1f405ded7774d4 (diff) | |
download | coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.gz coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.zst coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.zip |
add golangci-lint linter (#5499)
Diffstat (limited to 'core/dnsserver/server_https.go')
-rw-r--r-- | core/dnsserver/server_https.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/dnsserver/server_https.go b/core/dnsserver/server_https.go index b8b32b52e..8904da57e 100644 --- a/core/dnsserver/server_https.go +++ b/core/dnsserver/server_https.go @@ -104,7 +104,6 @@ func (s *ServerHTTPS) ServePacket(p net.PacketConn) error { return nil } // Listen implements caddy.TCPServer interface. func (s *ServerHTTPS) Listen() (net.Listener, error) { - l, err := reuseport.Listen("tcp", s.Addr[len(transport.HTTPS+"://"):]) if err != nil { return nil, err @@ -141,7 +140,6 @@ func (s *ServerHTTPS) Stop() error { // ServeHTTP is the handler that gets the HTTP request and converts to the dns format, calls the plugin // chain, converts it back and write it to the client. func (s *ServerHTTPS) ServeHTTP(w http.ResponseWriter, r *http.Request) { - if !s.validRequest(r) { http.Error(w, "", http.StatusNotFound) s.countResponse(http.StatusNotFound) |