mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2024-12-30 02:37:01 +00:00
Update middleware.go
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package fakedns
|
||||
|
||||
import (
|
||||
"github.com/xjasonlyu/tun2socks/log"
|
||||
"net"
|
||||
"strings"
|
||||
|
||||
@@ -50,6 +51,7 @@ func resolve(hosts *trie.Trie, pool *fakeip.Pool, r *D.Msg) (msg *D.Msg) {
|
||||
|
||||
q := r.Question[0]
|
||||
if q.Qtype != D.TypeA || q.Qclass != D.ClassINET {
|
||||
log.Warnf("DNS: %v", q.String())
|
||||
return dnsExchange(r)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user