1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-06-10 21:19:10 -04:00

Merged latest master

This commit is contained in:
Shelikhoo
2016-06-12 12:58:20 +08:00
17 changed files with 115 additions and 30 deletions

View File

@@ -2,12 +2,14 @@ package transport
import "github.com/v2ray/v2ray-core/transport/hub/kcpv"
// Config for V2Ray transport layer.
type Config struct {
ConnectionReuse bool
enableKcp bool
kcpConfig *kcpv.Config
}
// Apply applies this Config.
func (this *Config) Apply() error {
if this.ConnectionReuse {
connectionReuse = true