mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2024-12-22 06:15:51 +00:00
move DNSResult to resolver.go
This commit is contained in:
parent
f862e3efc7
commit
6c3b46bbea
@ -8,11 +8,6 @@ import (
|
||||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
type DNSResult struct {
|
||||
msg *dns.Msg
|
||||
err error
|
||||
}
|
||||
|
||||
type GeneralResolver struct {
|
||||
client *dns.Client
|
||||
server string
|
||||
|
@ -19,6 +19,11 @@ type Resolver interface {
|
||||
String() string
|
||||
}
|
||||
|
||||
type DNSResult struct {
|
||||
msg *dns.Msg
|
||||
err error
|
||||
}
|
||||
|
||||
func recordTypeIDToName(id uint16) string {
|
||||
switch id {
|
||||
case 1:
|
||||
|
Loading…
Reference in New Issue
Block a user