1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-06-06 19:19:15 -04:00

connection reuse for mkcp

This commit is contained in:
Darien Raymond
2016-11-27 08:58:31 +01:00
parent b2e084c78c
commit d19ee4d408
9 changed files with 319 additions and 108 deletions

View File

@@ -88,6 +88,13 @@ func (this *Config) GetReceivingBufferSize() uint32 {
return this.ReadBuffer.GetSize() / this.Mtu.GetValue()
}
func (o *ConnectionReuse) IsEnabled() bool {
if o == nil {
return true
}
return o.Enable
}
func init() {
internet.RegisterNetworkConfigCreator(v2net.Network_KCP, func() interface{} {
return new(Config)