update config

This commit is contained in:
ginuerzh
2022-01-10 18:25:48 +08:00
parent f0981298b8
commit 35ddf5cf43
4 changed files with 31 additions and 23 deletions

View File

@ -31,9 +31,9 @@ type ProfilingConfig struct {
}
type TLSConfig struct {
Cert string `yaml:",omitempty"`
Key string `yaml:",omitempty"`
CA string `yaml:",omitempty"`
CertFile string `yaml:"certFile,omitempty"`
KeyFile string `yaml:"keyFile,omitempty"`
CAFile string `yaml:"caFile,omitempty"`
Secure bool `yaml:",omitempty"`
ServerName string `yaml:"serverName,omitempty"`
}
@ -45,8 +45,8 @@ type AuthConfig struct {
type SelectorConfig struct {
Strategy string
MaxFails int
FailTimeout time.Duration
MaxFails int `yaml:"maxFails"`
FailTimeout time.Duration `yaml:"failTimeout"`
}
type BypassConfig struct {
@ -143,9 +143,9 @@ type HopConfig struct {
type NodeConfig struct {
Name string
Addr string `yaml:",omitempty"`
Dialer *DialerConfig `yaml:",omitempty"`
Connector *ConnectorConfig `yaml:",omitempty"`
Bypass string `yaml:",omitempty"`
Connector *ConnectorConfig `yaml:",omitempty"`
Dialer *DialerConfig `yaml:",omitempty"`
}
type Config struct {