Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
EkkoG committed Oct 8, 2024
1 parent 39599f7 commit 6f5c3de
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions control/dns_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"fmt"
"math"
"net"
"net/http"
"net/netip"
"strconv"
"strings"
Expand Down Expand Up @@ -509,8 +508,6 @@ func (c *DnsController) sendReject_(dnsMessage *dnsmessage.Msg, req *udpRequest)
return nil
}

var clientCache = make(map[string]*http.Client)

func (c *DnsController) dialSend(invokingDepth int, req *udpRequest, data []byte, id uint16, upstream *dns.Upstream, needResp bool) (err error) {
if invokingDepth >= MaxDnsLookupDepth {
return fmt.Errorf("too deep DNS lookup invoking (depth: %v); there may be infinite loop in your DNS response routing", MaxDnsLookupDepth)
Expand Down

0 comments on commit 6f5c3de

Please sign in to comment.