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 {