mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
fix test break
This commit is contained in:
parent
4815d32a28
commit
b115df56c0
@ -17,8 +17,17 @@ func (config *ConnectionConfig) Settings(config.Type) interface{} {
|
|||||||
return config.SettingsValue
|
return config.SettingsValue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type LogConfig struct {
|
||||||
|
AccessLogValue string
|
||||||
|
}
|
||||||
|
|
||||||
|
func (config *LogConfig) AccessLog() string {
|
||||||
|
return config.AccessLogValue
|
||||||
|
}
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
PortValue uint16
|
PortValue uint16
|
||||||
|
LogConfigValue *LogConfig
|
||||||
InboundConfigValue *ConnectionConfig
|
InboundConfigValue *ConnectionConfig
|
||||||
OutboundConfigValue *ConnectionConfig
|
OutboundConfigValue *ConnectionConfig
|
||||||
}
|
}
|
||||||
@ -27,6 +36,10 @@ func (config *Config) Port() uint16 {
|
|||||||
return config.PortValue
|
return config.PortValue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (config *Config) LogConfig() config.LogConfig {
|
||||||
|
return config.LogConfigValue
|
||||||
|
}
|
||||||
|
|
||||||
func (config *Config) InboundConfig() config.ConnectionConfig {
|
func (config *Config) InboundConfig() config.ConnectionConfig {
|
||||||
return config.InboundConfigValue
|
return config.InboundConfigValue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user