rootless

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGvisorStack

func CreateGvisorStack() *stack.Stack

Types

type ForwardEngine

type ForwardEngine struct {
	GvisorCard *gvisor.GvisorCard
	Forwards   []string
}

func (*ForwardEngine) Start

func (g *ForwardEngine) Start(ctx context.Context, wg *sync.WaitGroup) (err error)

type ProxyConfig

type ProxyConfig struct {
	Listen string   `yaml:"listen"`
	Users  []string `yaml:"users"`
}

func (*ProxyConfig) Verify added in v0.10.3

func (c *ProxyConfig) Verify(user, password string) bool

type ProxyServer

type ProxyServer struct {
	Config     ProxyConfig
	GvisorCard *gvisor.GvisorCard
}

func (*ProxyServer) Start

func (s *ProxyServer) Start(ctx context.Context, wg *sync.WaitGroup) error

type Socks5UDPConn added in v0.10.2

type Socks5UDPConn struct {
	net.Conn
	Addr socks5.Addr
	// contains filtered or unexported fields
}

func (*Socks5UDPConn) Read added in v0.10.2

func (c *Socks5UDPConn) Read(p []byte) (int, error)

func (*Socks5UDPConn) Write added in v0.10.2

func (c *Socks5UDPConn) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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