mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
add document for temporary API:DNSResolverFunc, DNSResolverFunc
This commit is contained in:
parent
2129c6e1e9
commit
00a4551637
@ -3,14 +3,19 @@
|
||||
package internet
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
)
|
||||
|
||||
const SystemDNS = "8.8.8.8:53"
|
||||
|
||||
/* DNSResolverFunc
|
||||
This is a temporary API and is subject to removal at any time.
|
||||
*/
|
||||
type DNSResolverFunc func() *net.Resolver
|
||||
|
||||
/* NewDNSResolver
|
||||
This is a temporary API and is subject to removal at any time.
|
||||
*/
|
||||
var NewDNSResolver DNSResolverFunc = func() *net.Resolver {
|
||||
return &net.Resolver{
|
||||
PreferGo: true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user