| 123456789101112131415161718192021 |
- package transport
- import (
- "github.com/v2ray/v2ray-core/transport/internet/kcp"
- "github.com/v2ray/v2ray-core/transport/internet/tcp"
- )
- // Config for V2Ray transport layer.
- type Config struct {
- tcpConfig *tcp.Config
- kcpConfig kcp.Config
- }
- // Apply applies this Config.
- func (this *Config) Apply() error {
- if this.tcpConfig != nil {
- this.tcpConfig.Apply()
- }
- this.kcpConfig.Apply()
- return nil
- }
|