mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
late set of cmd id
This commit is contained in:
parent
b6e23de0d3
commit
9f6822411b
@ -15,17 +15,17 @@ func (this *VMessInboundHandler) generateCommand(buffer *alloc.Buffer) {
|
||||
defer commandBytes.Release()
|
||||
|
||||
if this.features != nil && this.features.Detour != nil {
|
||||
cmd = byte(1)
|
||||
|
||||
tag := this.features.Detour.ToTag
|
||||
if this.space.HasInboundHandlerManager() {
|
||||
handlerManager := this.space.InboundHandlerManager()
|
||||
handler, availableMin := handlerManager.GetHandler(tag)
|
||||
|
||||
inboundHandler, ok := handler.(*VMessInboundHandler)
|
||||
if ok {
|
||||
if availableMin > 255 {
|
||||
availableMin = 255
|
||||
}
|
||||
cmd = byte(1)
|
||||
log.Info("VMessIn: Pick detour handler for port ", inboundHandler.Port(), " for ", availableMin, " minutes.")
|
||||
user := inboundHandler.GetUser()
|
||||
saCmd := &command.SwitchAccount{
|
||||
|
Loading…
Reference in New Issue
Block a user