mirror of https://github.com/v2ray/v2ray-core
GoDoc badge
parent
c467da4950
commit
5317b7d112
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
[](https://travis-ci.org/v2ray/v2ray-core)
|
[](https://travis-ci.org/v2ray/v2ray-core)
|
||||||
[](https://coveralls.io/github/v2ray/v2ray-core?branch=master)
|
[](https://coveralls.io/github/v2ray/v2ray-core?branch=master)
|
||||||
|
[](https://godoc.org/github.com/v2ray/v2ray-core)
|
||||||
|
|
||||||
V2Ray 是一个翻墙工具包,用于简化和复用其它翻墙工具,加速二次开发。
|
V2Ray 是一个翻墙工具包,用于简化和复用其它翻墙工具,加速二次开发。
|
||||||
|
|
||||||
|
|
13
vconfig.go
13
vconfig.go
|
@ -2,23 +2,18 @@ package core
|
||||||
|
|
||||||
// User account that is used for connection to a VPoint
|
// User account that is used for connection to a VPoint
|
||||||
type VUser struct {
|
type VUser struct {
|
||||||
// The ID of this VUser. This ID is served as an access token.
|
id VID // The ID of this VUser.
|
||||||
// It is not necessary to be permanent.
|
|
||||||
id VID
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// The next VPoint server in the connection chain.
|
// The next VPoint server in the connection chain.
|
||||||
type VNext struct {
|
type VNext struct {
|
||||||
// Address of VNext server, in the form of "IP:Port"
|
ServerAddress string // Address of VNext server, in the form of "IP:Port"
|
||||||
ServerAddress string
|
User []VUser // User accounts for accessing VNext.
|
||||||
// User accounts for accessing VNext.
|
|
||||||
User []VUser
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// The config for VPoint server.
|
// The config for VPoint server.
|
||||||
type VConfig struct {
|
type VConfig struct {
|
||||||
// Port of this VPoint server.
|
Port uint16 // Port of this VPoint server.
|
||||||
Port uint16
|
|
||||||
AllowedClients []VUser
|
AllowedClients []VUser
|
||||||
ClientProtocol string
|
ClientProtocol string
|
||||||
VNextList []VNext
|
VNextList []VNext
|
||||||
|
|
Loading…
Reference in New Issue