From 8c4a6d94f9e0973bbefe0ed19982461e285bc041 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Sat, 13 Aug 2016 21:37:17 +0800 Subject: [PATCH] WS Conf structure --- transport/config.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/transport/config.go b/transport/config.go index efe221fe7..55c7ccc14 100644 --- a/transport/config.go +++ b/transport/config.go @@ -3,12 +3,14 @@ package transport import ( "github.com/v2ray/v2ray-core/transport/internet/kcp" "github.com/v2ray/v2ray-core/transport/internet/tcp" + "github.com/v2ray/v2ray-core/transport/internet/ws" ) // Config for V2Ray transport layer. type Config struct { tcpConfig *tcp.Config kcpConfig kcp.Config + wsConfig *ws.Config } // Apply applies this Config. @@ -17,5 +19,8 @@ func (this *Config) Apply() error { this.tcpConfig.Apply() } this.kcpConfig.Apply() + if this.wsConfig != nil { + this.wsConfig.Apply() + } return nil }