1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-27 09:55:22 +00:00

WS Conf structure

This commit is contained in:
Shelikhoo 2016-08-13 21:37:17 +08:00
parent 8c96b1961b
commit 8c4a6d94f9
No known key found for this signature in database
GPG Key ID: 7791BDB0709ABD21

View File

@ -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
}