Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRealityClient ¶
func NewRealityClient(config *protocol.Protocol_Reality) protocol.WrapProxy
Types ¶
type RealityClient ¶
type RealityClient struct { netapi.EmptyDispatch // TODO: remove debug log Deubg bool // contains filtered or unexported fields }
func (*RealityClient) ClientHandshake ¶
func (*RealityClient) PacketConn ¶
func (e *RealityClient) PacketConn(ctx context.Context, addr netapi.Address) (net.PacketConn, error)
type ServerConfig ¶
type ServerConfig struct { ShortID []string // "0123456789abcdef", "" ServerNames []string Dest string PrivateKey []byte Debug bool }
func (*ServerConfig) ServerNameMap ¶
func (s *ServerConfig) ServerNameMap() map[string]bool
func (*ServerConfig) ShortIDMap ¶
func (s *ServerConfig) ShortIDMap() (map[[8]byte]bool, error)
Click to show internal directories.
Click to hide internal directories.