fakedns

package
v0.0.0-...-c8ed71d Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlwaysDirectLookup

func AlwaysDirectLookup(domain string)

func SetAclListPath

func SetAclListPath(p string)

func SetBaseDir

func SetBaseDir(dir string)

func SetChnDns

func SetChnDns(s string)

func SetHostsPath

func SetHostsPath(paths []string)

func SetLocalPort

func SetLocalPort(p int)

func SetLoggerFunc

func SetLoggerFunc(f func(f string, v ...interface{}))

func ShouldDirectConnect

func ShouldDirectConnect(ip IPv4) bool

func Start

func Start()

func TryReplaceIP2Dom

func TryReplaceIP2Dom(orig socks.Addr) socks.Addr

Types

type IPv4

type IPv4 uint32

func FromNetIP

func FromNetIP(ip net.IP) IPv4

func (IPv4) String

func (i IPv4) String() string

Jump to

Keyboard shortcuts

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