1
0
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:
Darien Raymond
2017-01-01 21:19:12 +01:00
parent 2a52ae9e96
commit 58ae7e4967
8 changed files with 15 additions and 20 deletions

View File

@@ -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() {