ss

package
v0.0.0-...-c30bc72 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const AEADCipher = "AEAD_CHACHA20_POLY1305"

Variables

View Source
var ServerConfig struct {
	Verbose    bool
	UDPTimeout time.Duration
	TCPCork    bool // coalesce writing first few packets
}

controls ss server

Functions

func SSMain

func SSMain(ss_config *SSConfig) (err error)

Start shadowsocks server / client server_addr: addr of shadowsocks server socks_addr: addr of the local socks5 proxy started by shadowsocks client

Types

type SSConfig

type SSConfig struct {
	ServerAddr     string
	LocalSocksAddr string
	Cipher         string
	Password       string
	IsServer       bool
	Verbose        bool

	// used as switch
	Ctx    context.Context
	Cancel context.CancelFunc
}

SSConfig start ss server/client with this config

Jump to

Keyboard shortcuts

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