mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-07-03 23:47:53 -04:00
enable connection reuse by default
This commit is contained in:
parent
d9b59133cc
commit
b17edf907e
@ -8,7 +8,9 @@ func (this *Config) UnmarshalJSON(data []byte) error {
|
|||||||
type JsonConfig struct {
|
type JsonConfig struct {
|
||||||
ConnectionReuse bool `json:"connectionReuse"`
|
ConnectionReuse bool `json:"connectionReuse"`
|
||||||
}
|
}
|
||||||
jsonConfig := new(JsonConfig)
|
jsonConfig := &JsonConfig{
|
||||||
|
ConnectionReuse: true,
|
||||||
|
}
|
||||||
if err := json.Unmarshal(data, jsonConfig); err != nil {
|
if err := json.Unmarshal(data, jsonConfig); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package transport
|
package transport
|
||||||
|
|
||||||
var (
|
var (
|
||||||
connectionReuse = false
|
connectionReuse = true
|
||||||
)
|
)
|
||||||
|
|
||||||
func IsConnectionReusable() bool {
|
func IsConnectionReusable() bool {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user