mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-17 01:49:08 -04:00
json config parser
This commit is contained in:
@@ -5,6 +5,13 @@ import (
|
||||
"v2ray.com/core/transport/internet"
|
||||
)
|
||||
|
||||
func (this *ConnectionReuse) IsEnabled() bool {
|
||||
if this == nil {
|
||||
return true
|
||||
}
|
||||
return this.Enable
|
||||
}
|
||||
|
||||
func init() {
|
||||
internet.RegisterNetworkConfigCreator(v2net.Network_TCP, func() interface{} {
|
||||
return new(Config)
|
||||
|
||||
Reference in New Issue
Block a user