mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 18:08:14 -05:00
del not need config
This commit is contained in:
parent
8b9d0fc578
commit
69eec50f81
@ -20,7 +20,6 @@ type ControllerConfig struct {
|
|||||||
EnableDNS bool `yaml:"EnableDNS"`
|
EnableDNS bool `yaml:"EnableDNS"`
|
||||||
DNSType string `yaml:"DNSType"`
|
DNSType string `yaml:"DNSType"`
|
||||||
EnableVless bool `yaml:"EnableVless"`
|
EnableVless bool `yaml:"EnableVless"`
|
||||||
EnableTls bool `yaml:"EnableTls"`
|
|
||||||
LimitConfig LimitConfig `yaml:"LimitConfig"`
|
LimitConfig LimitConfig `yaml:"LimitConfig"`
|
||||||
DisableUploadTraffic bool `yaml:"DisableUploadTraffic"`
|
DisableUploadTraffic bool `yaml:"DisableUploadTraffic"`
|
||||||
DisableGetRule bool `yaml:"DisableGetRule"`
|
DisableGetRule bool `yaml:"DisableGetRule"`
|
||||||
|
@ -65,7 +65,7 @@ func buildInbound(config *conf.ControllerConfig, nodeInfo *panel.NodeInfo, tag s
|
|||||||
AcceptProxyProtocol: config.EnableProxyProtocol} //Enable proxy protocol
|
AcceptProxyProtocol: config.EnableProxyProtocol} //Enable proxy protocol
|
||||||
}
|
}
|
||||||
// Set TLS and XTLS settings
|
// Set TLS and XTLS settings
|
||||||
if config.EnableTls && config.CertConfig.CertMode != "none" {
|
if nodeInfo.Tls != 0 && config.CertConfig.CertMode != "none" {
|
||||||
inbound.StreamSetting.Security = "tls"
|
inbound.StreamSetting.Security = "tls"
|
||||||
certFile, keyFile, err := getCertFile(config.CertConfig)
|
certFile, keyFile, err := getCertFile(config.CertConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -35,7 +35,7 @@ func (c *Controller) initTask() {
|
|||||||
time.Sleep(time.Duration(c.nodeInfo.BaseConfig.PushInterval.(int)) * time.Second)
|
time.Sleep(time.Duration(c.nodeInfo.BaseConfig.PushInterval.(int)) * time.Second)
|
||||||
_ = c.userReportPeriodic.Start()
|
_ = c.userReportPeriodic.Start()
|
||||||
}()
|
}()
|
||||||
if c.EnableTls && c.CertConfig.CertMode != "none" &&
|
if c.nodeInfo.Tls != 0 && c.CertConfig.CertMode != "none" &&
|
||||||
(c.CertConfig.CertMode == "dns" || c.CertConfig.CertMode == "http") {
|
(c.CertConfig.CertMode == "dns" || c.CertConfig.CertMode == "http") {
|
||||||
c.renewCertPeriodic = &task.Periodic{
|
c.renewCertPeriodic = &task.Periodic{
|
||||||
Interval: time.Hour * 24,
|
Interval: time.Hour * 24,
|
||||||
|
Loading…
Reference in New Issue
Block a user