mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
405 B
22 lines
405 B
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
|
|
}
|