aboutsummaryrefslogtreecommitdiff
path: root/core/dnsserver/server_https.go
diff options
context:
space:
mode:
authorGravatar Ondřej Benkovský <ondrej.benkovsky@jamf.com> 2022-07-10 20:06:33 +0200
committerGravatar GitHub <noreply@github.com> 2022-07-10 11:06:33 -0700
commitc2dbb7141a7c95aa521a41b27bed3af25de8f546 (patch)
tree3af5d63a0dccaa769507e34a32b6378ccef880c4 /core/dnsserver/server_https.go
parentabc5ac8017b0f434b5845321fb1f405ded7774d4 (diff)
downloadcoredns-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.go2
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)