Documentation
¶
Index ¶
Constants ¶
View Source
const ( ATypeIPv4 = 1 ATypeDomainName = 3 ATypeIPv6 = 4 )
SOCKS address types as defined in RFC 1928 section 5.
View Source
const ( Direct = iota Proxy Block )
View Source
const Unknown = 999
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { ID uuid.UUID `json:"-"` NetWork NetWork `json:"Network"` Type Type `json:"Type"` Client *IP `json:"Client"` Source *IP `json:"Source"` Target *IP `json:"Target"` }
func UnmarshalMetadata ¶
type Server ¶
type Server struct { // 通用配置 Host string `yaml:""` // 地址 Port int64 `yaml:""` // 端口 Token string `yaml:""` // 加密key TLS *TLS `yaml:""` // 证书 Timeout time.Duration `yaml:""` // 连接超时时间 // 出口特殊配置 Interface string `yaml:""` // 指定出口网卡 RoutingMark int `yaml:""` // linux 下可指定fwmark // 证书 TLSConf *tls.Config }
type TCPContext ¶
type TCPContext struct { SrcConn net.Conn Metadata *Metadata Line string // http proxy PreFn func() PostFn func() }
TCPContext is used to store connection address
Click to show internal directories.
Click to hide internal directories.