mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-17 01:53:36 -05:00
22 lines
405 B
Go
22 lines
405 B
Go
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
|
|
}
|