Documentation
¶
Overview ¶
Package socks5http provides listening both socks5 and http at one port.
This package imports proxy/socks5 and proxy/http package.
为了避免混淆,本包不支持密码验证。你要是有这么高的密码要求 那你不妨用单独的协议,而不要用混合版。
实际上本包就是先经过http,然后如果不是http代理请求,就会回落到socks5.
所以你可以通过 设计回落的方式来达到 有密码 的 混合端口 的需求。
Index ¶
Constants ¶
View Source
const Name = "socks5http"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerCreator ¶
type ServerCreator struct{}
func (ServerCreator) NewServer ¶
func (ServerCreator) NewServer(dc *proxy.ListenConf) (proxy.Server, error)
func (ServerCreator) NewServerFromURL ¶
Click to show internal directories.
Click to hide internal directories.