1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-16 12:45:24 +00:00

add document for temporary API:DNSResolverFunc, DNSResolverFunc

This commit is contained in:
Shelikhoo 2021-05-04 22:25:37 +01:00
parent 2129c6e1e9
commit 00a4551637
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -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,