mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2024-12-22 22:36:53 +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"
|
"github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DNSResult struct {
|
|
||||||
msg *dns.Msg
|
|
||||||
err error
|
|
||||||
}
|
|
||||||
|
|
||||||
type GeneralResolver struct {
|
type GeneralResolver struct {
|
||||||
client *dns.Client
|
client *dns.Client
|
||||||
server string
|
server string
|
||||||
|
@ -19,6 +19,11 @@ type Resolver interface {
|
|||||||
String() string
|
String() string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DNSResult struct {
|
||||||
|
msg *dns.Msg
|
||||||
|
err error
|
||||||
|
}
|
||||||
|
|
||||||
func recordTypeIDToName(id uint16) string {
|
func recordTypeIDToName(id uint16) string {
|
||||||
switch id {
|
switch id {
|
||||||
case 1:
|
case 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user