From fec573cfce99f2efff8aa0a096564a0a36912023 Mon Sep 17 00:00:00 2001 From: cubemaze Date: Wed, 19 Jul 2023 12:28:56 +0800 Subject: [PATCH] chore: remove unused --- conf/node.go | 1 - core/xray/inbound.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/conf/node.go b/conf/node.go index eca14be..868bd83 100644 --- a/conf/node.go +++ b/conf/node.go @@ -40,7 +40,6 @@ type XrayOptions struct { DNSType string `yaml:"DNSType"` EnableUot bool `yaml:"EnableUot"` EnableTFO bool `yaml:"EnableTFO"` - EnableVless bool `yaml:"EnableVless"` DisableIVCheck bool `yaml:"DisableIVCheck"` DisableSniffing bool `yaml:"DisableSniffing"` EnableFallback bool `yaml:"EnableFallback"` diff --git a/core/xray/inbound.go b/core/xray/inbound.go index 11a429f..acf0560 100644 --- a/core/xray/inbound.go +++ b/core/xray/inbound.go @@ -138,7 +138,7 @@ func buildInbound(config *conf.ControllerConfig, nodeInfo *panel.NodeInfo, tag s } func buildV2ray(config *conf.ControllerConfig, nodeInfo *panel.NodeInfo, inbound *coreConf.InboundDetourConfig) error { - if config.XrayOptions.EnableVless || nodeInfo.ExtraConfig.EnableVless { + if nodeInfo.ExtraConfig.EnableVless { //Set vless inbound.Protocol = "vless" if config.XrayOptions.EnableFallback {