mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-06 01:05:35 -05:00
refine proto settings
This commit is contained in:
@@ -5,11 +5,11 @@ import (
|
||||
"v2ray.com/core/transport/internet"
|
||||
)
|
||||
|
||||
func (v *ConnectionReuse) IsEnabled() bool {
|
||||
if v == nil {
|
||||
func (c *Config) IsConnectionReuse() bool {
|
||||
if c == nil || c.ConnectionReuse == nil {
|
||||
return false
|
||||
}
|
||||
return v.Enable
|
||||
return c.ConnectionReuse.Enable
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
Reference in New Issue
Block a user