mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
enable conn reuse settings in mkcp
This commit is contained in:
parent
d19ee4d408
commit
b1f78a1ffc
@ -439,10 +439,12 @@ func (this *Connection) updateTask() {
|
||||
}
|
||||
|
||||
func (this *Connection) Reusable() bool {
|
||||
return false
|
||||
return this.Config.ConnectionReuse.IsEnabled() && this.reusable
|
||||
}
|
||||
|
||||
func (this *Connection) SetReusable(b bool) {}
|
||||
func (this *Connection) SetReusable(b bool) {
|
||||
this.reusable = b
|
||||
}
|
||||
|
||||
func (this *Connection) Terminate() {
|
||||
if this == nil {
|
||||
|
@ -100,6 +100,7 @@ func NewListener(address v2net.Address, port v2net.Port, options internet.Listen
|
||||
return nil, err
|
||||
}
|
||||
kcpSettings := networkSettings.(*Config)
|
||||
kcpSettings.ConnectionReuse = &ConnectionReuse{Enable: false}
|
||||
|
||||
auth, err := kcpSettings.GetAuthenticator()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user