mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
rename RouterConfig to Config
This commit is contained in:
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
Block a user