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