Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LsServer ¶
type LsServer struct { Cipher *lightsocks.Cipher ListenAddr *net.TCPAddr }
func NewLsServer ¶
新建一个服务端 服务端的职责是: 1. 监听来自本地代理客户端的请求 2. 解密本地代理客户端请求的数据,解析 SOCKS5 协议,连接用户浏览器真正想要连接的远程服务器 3. 转发用户浏览器真正想要连接的远程服务器返回的数据的加密后的内容到本地代理客户端
Click to show internal directories.
Click to hide internal directories.