redir

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SO_ORIGINAL_DST from linux/include/uapi/linux/netfilter_ipv4.h
	SO_ORIGINAL_DST = 80
	// IP6T_SO_ORIGINAL_DST from linux/include/uapi/linux/netfilter_ipv6/ip6_tables.h
	IP6T_SO_ORIGINAL_DST = 80
)
View Source
const GETSOCKOPT = syscall.SYS_GETSOCKOPT

GETSOCKOPT from syscall

Variables

This section is empty.

Functions

func NewRedir6Server added in v0.6.9

func NewRedir6Server(s string, dialer proxy.Dialer) (proxy.Server, error)

NewRedir6Server returns a redir server for ipv6.

func NewRedirServer

func NewRedirServer(s string, dialer proxy.Dialer) (proxy.Server, error)

NewRedirServer returns a redir server.

Types

type RedirProxy

type RedirProxy struct {
	// contains filtered or unexported fields
}

RedirProxy struct

func NewRedirProxy

func NewRedirProxy(s string, dialer proxy.Dialer, ipv6 bool) (*RedirProxy, error)

NewRedirProxy returns a redirect proxy.

func (*RedirProxy) ListenAndServe

func (s *RedirProxy) ListenAndServe()

ListenAndServe .

func (*RedirProxy) Serve added in v0.6.9

func (s *RedirProxy) Serve(c net.Conn)

Serve .

Jump to

Keyboard shortcuts

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