Documentation
¶
Index ¶
- Constants
- func NewVlessClient(url *url.URL) (proxy.Client, error)
- func NewVlessServer(url *url.URL) (proxy.Server, error)
- type CRUMFURS
- type Client
- func (c *Client) AddrStr() string
- func (c *Client) GetNewUDPResponse() (*net.UDPAddr, []byte, error)
- func (c *Client) Handshake(underlay net.Conn, target *proxy.TargetAddr) (io.ReadWriter, error)
- func (c *Client) Name() string
- func (c *Client) SetAddrStr(s string)
- func (c *Client) Version() int
- func (c *Client) WriteUDPRequest(a *net.UDPAddr, b []byte) (err error)
- type Server
- type UserConn
Constants ¶
View Source
const ( Cmd_CRUMFURS byte = 4 // start from vless v1 CRUMFURS_ESTABLISHED byte = 20 CRUMFURS_Established_Str = "CRUMFURS_Established" )
View Source
const Name = "vless"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetNewUDPResponse ¶
func (*Client) Handshake ¶
func (c *Client) Handshake(underlay net.Conn, target *proxy.TargetAddr) (io.ReadWriter, error)
func (*Client) SetAddrStr ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Get_CRUMFURS ¶
func (*Server) Handshake ¶
func (s *Server) Handshake(underlay net.Conn) (io.ReadWriter, *proxy.TargetAddr, error)
see https://github.com/v2fly/v2ray-core/blob/master/proxy/vless/inbound/inbound.go
Click to show internal directories.
Click to hide internal directories.