local

package
v0.0.0-...-63d9018 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LsLocal

type LsLocal struct {
	Cipher     *lightsocks.Cipher
	ListenAddr *net.TCPAddr
	RemoteAddr *net.TCPAddr
}

func NewLsLocal

func NewLsLocal(password string, listenAddr, remoteAddr string) (*LsLocal, error)

新建一个本地端 本地端的职责是: 1. 监听来自本机浏览器的代理请求 2. 转发前加密数据 3. 转发socket数据到墙外代理服务端 4. 把服务端返回的数据转发给用户的浏览器

func (*LsLocal) Listen

func (local *LsLocal) Listen(didListen func(listenAddr *net.TCPAddr)) error

本地端启动监听,接收来自本机浏览器的连接

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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