fix ProxyProtocol

This commit is contained in:
Yuzuki616
2023-07-09 12:57:30 +08:00
parent 251702c06a
commit 536a93dfc1

View File

@@ -15,26 +15,26 @@ type ApiConfig struct {
} }
type ControllerConfig struct { type ControllerConfig struct {
ListenIP string `yaml:"ListenIP"` ListenIP string `yaml:"ListenIP"`
SendIP string `yaml:"SendIP"` SendIP string `yaml:"SendIP"`
EnableProxyProtocol bool `yaml:"EnableProxyProtocol"` XrayOptions XrayOptions `yaml:"XrayOptions"`
XrayOptions XrayOptions `yaml:"XrayOptions"` HyOptions HyOptions `yaml:"HyOptions"`
HyOptions HyOptions `yaml:"HyOptions"` LimitConfig LimitConfig `yaml:"LimitConfig"`
LimitConfig LimitConfig `yaml:"LimitConfig"` CertConfig *CertConfig `yaml:"CertConfig"`
CertConfig *CertConfig `yaml:"CertConfig"`
} }
type XrayOptions struct { type XrayOptions struct {
EnableDNS bool `yaml:"EnableDNS"` EnableProxyProtocol bool `yaml:"EnableProxyProtocol"`
DNSType string `yaml:"DNSType"` EnableDNS bool `yaml:"EnableDNS"`
EnableVless bool `yaml:"EnableVless"` DNSType string `yaml:"DNSType"`
VlessFlow string `json:"VlessFlow"` EnableVless bool `yaml:"EnableVless"`
EnableUot bool `yaml:"EnableUot"` VlessFlow string `json:"VlessFlow"`
EnableTFO bool `yaml:"EnableTFO"` EnableUot bool `yaml:"EnableUot"`
DisableIVCheck bool `yaml:"DisableIVCheck"` EnableTFO bool `yaml:"EnableTFO"`
DisableSniffing bool `yaml:"DisableSniffing"` DisableIVCheck bool `yaml:"DisableIVCheck"`
EnableFallback bool `yaml:"EnableFallback"` DisableSniffing bool `yaml:"DisableSniffing"`
FallBackConfigs []FallBackConfig `yaml:"FallBackConfigs"` EnableFallback bool `yaml:"EnableFallback"`
FallBackConfigs []FallBackConfig `yaml:"FallBackConfigs"`
} }
type HyOptions struct { type HyOptions struct {