Documentation ¶
Index ¶
Constants ¶
View Source
const ( AtypIPv4 = 1 AtypDomainName = 3 AtypIPv6 = 4 TCP = iota UDP )
Socks addr type
View Source
const ( Name = "clash" DefalutHTTPPort = "7890" DefalutSOCKSPort = "7891" )
Variables ¶
View Source
var ( HomeDir string ConfigPath string MMDBPath string )
Functions ¶
Types ¶
type ProxyAdapter ¶
type ProxyAdapter interface { ReadWriter() io.ReadWriter Conn() net.Conn Close() }
type ServerAdapter ¶
type ServerAdapter interface { Addr() *Addr Connect(ProxyAdapter) Close() }
Click to show internal directories.
Click to hide internal directories.