From 5317b7d11232b7ea4b92d50f61200a463a1b4638 Mon Sep 17 00:00:00 2001 From: V2Ray Date: Tue, 8 Sep 2015 01:35:19 +0200 Subject: [PATCH] GoDoc badge --- README.md | 1 + vconfig.go | 13 ++++--------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e8243cf70..74a1af252 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Build Status](https://travis-ci.org/v2ray/v2ray-core.svg?branch=master)](https://travis-ci.org/v2ray/v2ray-core) [![Coverage Status](https://coveralls.io/repos/v2ray/v2ray-core/badge.svg?branch=master&service=github)](https://coveralls.io/github/v2ray/v2ray-core?branch=master) +[![GoDoc](https://godoc.org/github.com/v2ray/v2ray-core?status.svg)](https://godoc.org/github.com/v2ray/v2ray-core) V2Ray 是一个翻墙工具包,用于简化和复用其它翻墙工具,加速二次开发。 diff --git a/vconfig.go b/vconfig.go index 6d3bac66f..a4deed171 100644 --- a/vconfig.go +++ b/vconfig.go @@ -2,23 +2,18 @@ package core // User account that is used for connection to a VPoint type VUser struct { - // The ID of this VUser. This ID is served as an access token. - // It is not necessary to be permanent. - id VID + id VID // The ID of this VUser. } // The next VPoint server in the connection chain. type VNext struct { - // Address of VNext server, in the form of "IP:Port" - ServerAddress string - // User accounts for accessing VNext. - User []VUser + ServerAddress string // Address of VNext server, in the form of "IP:Port" + User []VUser // User accounts for accessing VNext. } // The config for VPoint server. type VConfig struct { - // Port of this VPoint server. - Port uint16 + Port uint16 // Port of this VPoint server. AllowedClients []VUser ClientProtocol string VNextList []VNext