mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-01 08:17:25 +00:00
completely fix detour config
This commit is contained in:
@@ -6,9 +6,8 @@ import (
|
||||
)
|
||||
|
||||
func (this *VMessInboundHandler) generateCommand(request *protocol.RequestHeader) protocol.ResponseCommand {
|
||||
if this.features != nil && this.features.Detour != nil {
|
||||
|
||||
tag := this.features.Detour.ToTag
|
||||
if this.detours != nil {
|
||||
tag := this.detours.ToTag
|
||||
if this.inboundHandlerManager != nil {
|
||||
handler, availableMin := this.inboundHandlerManager.GetHandler(tag)
|
||||
inboundHandler, ok := handler.(*VMessInboundHandler)
|
||||
|
||||
@@ -72,7 +72,7 @@ type VMessInboundHandler struct {
|
||||
usersByEmail *userByEmail
|
||||
accepting bool
|
||||
listener *hub.TCPHub
|
||||
features *FeaturesConfig
|
||||
detours *DetourConfig
|
||||
listeningPort v2net.Port
|
||||
listeningAddress v2net.Address
|
||||
}
|
||||
@@ -232,7 +232,7 @@ func init() {
|
||||
handler := &VMessInboundHandler{
|
||||
packetDispatcher: space.GetApp(dispatcher.APP_ID).(dispatcher.PacketDispatcher),
|
||||
clients: allowedClients,
|
||||
features: config.Features,
|
||||
detours: config.DetourConfig,
|
||||
usersByEmail: NewUserByEmail(config.AllowedUsers, config.Defaults),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user