mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
21 lines
355 B
Go
21 lines
355 B
Go
package transport
|
|
|
|
import "github.com/v2ray/v2ray-core/transport/hub/kcpv"
|
|
|
|
type Config struct {
|
|
ConnectionReuse bool
|
|
enableKcp bool
|
|
kcpConfig *kcpv.Config
|
|
}
|
|
|
|
func (this *Config) Apply() error {
|
|
if this.ConnectionReuse {
|
|
connectionReuse = true
|
|
}
|
|
enableKcp = this.enableKcp
|
|
if enableKcp {
|
|
KcpConfig = this.kcpConfig
|
|
}
|
|
return nil
|
|
}
|