chore: 调整dns interface与adapter部分

This commit is contained in:
MetaCubeX
2022-06-05 12:52:29 +08:00
parent 4ad0294655
commit 6e03773134
4 changed files with 16 additions and 26 deletions

View File

@@ -3,7 +3,6 @@ package dns
import (
"context"
"crypto/tls"
"errors"
"fmt"
"net"
"net/netip"
@@ -20,8 +19,6 @@ import (
D "github.com/miekg/dns"
)
var errProxyNotFound = errors.New("proxy adapter not found")
func putMsgToCache(c *cache.LruCache[string, *D.Msg], key string, msg *D.Msg) {
var ttl uint32
switch {