1
0
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:
v2ray 2015-12-08 00:04:02 +01:00
parent aab774e78f
commit 641e5db851
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
package router package router
type RouterConfig interface { type Config interface {
Strategy() string Strategy() string
Settings() interface{} Settings() interface{}
} }

View File

@ -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

View File

@ -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
} }

View File

@ -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
} }