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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user