net

package
v0.1.3-0...-08ec195 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2018 License: BSD-4-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractIp

func ExtractIp(remoteAddr net.Addr) string

func GetLocalIP

func GetLocalIP() string

GetLocalIP returns the non loopback local IP of the host

func ReplaceDefaultDnsResolver

func ReplaceDefaultDnsResolver()

func ResolveIp

func ResolveIp(name string) (net.IP, error)

Types

type PreferIPV4Resolver

type PreferIPV4Resolver struct{}

func (*PreferIPV4Resolver) ServeDNS

func (p *PreferIPV4Resolver) ServeDNS(ctx context.Context, w dns.MessageWriter, r *dns.Query)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL