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

package dns

import "v2ray.com/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) and is imported by 5 packages. Updated 2020-10-16. Refresh now. Tools for package owners.