mirror of https://github.com/v2ray/v2ray-core
rename RouterConfig to Config
parent
aab774e78f
commit
641e5db851
|
@ -1,6 +1,6 @@
|
|||
package router
|
||||
|
||||
type RouterConfig interface {
|
||||
type Config interface {
|
||||
Strategy() string
|
||||
Settings() interface{}
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ type OutboundDetourConfig interface {
|
|||
type PointConfig interface {
|
||||
Port() v2net.Port
|
||||
LogConfig() LogConfig
|
||||
RouterConfig() router.RouterConfig
|
||||
RouterConfig() router.Config
|
||||
InboundConfig() ConnectionConfig
|
||||
OutboundConfig() ConnectionConfig
|
||||
InboundDetours() []InboundDetourConfig
|
||||
|
|
|
@ -35,7 +35,7 @@ func (config *Config) LogConfig() point.LogConfig {
|
|||
return config.LogConfigValue
|
||||
}
|
||||
|
||||
func (this *Config) RouterConfig() router.RouterConfig {
|
||||
func (this *Config) RouterConfig() router.Config {
|
||||
if this.RouterConfigValue == nil {
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ func (config *Config) LogConfig() point.LogConfig {
|
|||
return config.LogConfigValue
|
||||
}
|
||||
|
||||
func (this *Config) RouterConfig() router.RouterConfig {
|
||||
func (this *Config) RouterConfig() router.Config {
|
||||
if this.RouterConfigValue == nil {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue