v2ray-core: github.com/v2ray/v2ray-core/features/routing/dns Index | Files

package dns

import "github.com/v2ray/v2ray-core/features/routing/dns"

Index

Package Files

context.go errors.generated.go

func ContextWithDNSClient Uses

func ContextWithDNSClient(ctx routing.Context, client dns.Client) routing.Context

ContextWithDNSClient creates a new routing context with domain resolving capability. Resolved domain IPs can be retrieved by GetTargetIPs().

type ResolvableContext Uses

type ResolvableContext struct {
    routing.Context
    // contains filtered or unexported fields
}

ResolvableContext is an implementation of routing.Context, with domain resolving capability.

func (*ResolvableContext) GetTargetIPs Uses

func (ctx *ResolvableContext) GetTargetIPs() []net.IP

GetTargetIPs overrides original routing.Context's implementation.

Package dns imports 4 packages (graph). Updated 2020-10-15. Refresh now. Tools for package owners.