mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-19 23:03:08 +00:00
refactor common/net.Port
This commit is contained in:
1 parent
fa7c1069bc
commit
ae056714db
33 files changed
+86
-70
No files matched your search
@@ -59,7 +59,7 @@ func (config *LogConfig) AccessLog() string {
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
PortValue uint16
|
||||
PortValue v2net.Port
|
||||
LogConfigValue *LogConfig
|
||||
RouterConfigValue routerconfig.RouterConfig
|
||||
InboundConfigValue *ConnectionConfig
|
||||
@@ -68,7 +68,7 @@ type Config struct {
|
||||
OutboundDetoursValue []*OutboundDetourConfig
|
||||
}
|
||||
|
||||
func (config *Config) Port() uint16 {
|
||||
func (config *Config) Port() v2net.Port {
|
||||
return config.PortValue
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user