Documentation ¶
Index ¶
Constants ¶
View Source
const (
InfoTimeNotSync = "Please check the User ID in your vmess configuration, and make sure the time on your local and remote server are in sync."
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VMessInboundConfig ¶
type VMessInboundConfig struct {
AllowedClients []VMessUser `json:"clients"`
}
VMessInboundConfig is
type VMessInboundHandler ¶
type VMessInboundHandler struct {
// contains filtered or unexported fields
}
func NewVMessInboundHandler ¶
func NewVMessInboundHandler(vp *core.Point, clients user.UserSet) *VMessInboundHandler
func (*VMessInboundHandler) AcceptConnections ¶
func (handler *VMessInboundHandler) AcceptConnections(listener net.Listener) error
func (*VMessInboundHandler) HandleConnection ¶
func (handler *VMessInboundHandler) HandleConnection(connection net.Conn) error
func (*VMessInboundHandler) Listen ¶
func (handler *VMessInboundHandler) Listen(port uint16) error
type VMessInboundHandlerFactory ¶
type VMessInboundHandlerFactory struct { }
func (*VMessInboundHandlerFactory) Create ¶
func (factory *VMessInboundHandlerFactory) Create(vp *core.Point, rawConfig []byte) (core.InboundConnectionHandler, error)
type VMessOutboundConfig ¶
type VMessOutboundConfig struct {
VNextList []VNextConfig `json:"vnext"`
}
type VMessOutboundHandler ¶
type VMessOutboundHandler struct {
// contains filtered or unexported fields
}
func NewVMessOutboundHandler ¶
func NewVMessOutboundHandler(vp *core.Point, vNextList []VNextServer, firstPacket v2net.Packet) *VMessOutboundHandler
func (*VMessOutboundHandler) Start ¶
func (handler *VMessOutboundHandler) Start(ray core.OutboundRay) error
type VMessOutboundHandlerFactory ¶
type VMessOutboundHandlerFactory struct {
// contains filtered or unexported fields
}
func (*VMessOutboundHandlerFactory) Create ¶
func (factory *VMessOutboundHandlerFactory) Create(vp *core.Point, firstPacket v2net.Packet) (core.OutboundConnectionHandler, error)
func (*VMessOutboundHandlerFactory) Initialize ¶
func (factory *VMessOutboundHandlerFactory) Initialize(rawConfig []byte) error
type VNextConfig ¶
type VNextConfig struct { Address string `json:"address"` Port uint16 `json:"port"` Users []VMessUser `json:"users"` Network string `json:"network"` }
func (VNextConfig) ToVNextServer ¶
func (config VNextConfig) ToVNextServer() VNextServer
type VNextServer ¶
type VNextServer struct { Destination v2net.Destination // Address of VNext server Users []user.User // User accounts for accessing VNext. }
VNext is the next Point server in the connection chain.
Click to show internal directories.
Click to hide internal directories.