mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
comments
This commit is contained in:
parent
b17edf907e
commit
ffce784dce
@ -1,9 +1,11 @@
|
|||||||
package transport
|
package transport
|
||||||
|
|
||||||
|
// Config for V2Ray transport layer.
|
||||||
type Config struct {
|
type Config struct {
|
||||||
ConnectionReuse bool
|
ConnectionReuse bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Apply applies this Config.
|
||||||
func (this *Config) Apply() error {
|
func (this *Config) Apply() error {
|
||||||
if this.ConnectionReuse {
|
if this.ConnectionReuse {
|
||||||
connectionReuse = true
|
connectionReuse = true
|
||||||
|
@ -4,6 +4,7 @@ var (
|
|||||||
connectionReuse = true
|
connectionReuse = true
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// IsConnectionReusable returns true if V2Ray is trying to reuse TCP connections.
|
||||||
func IsConnectionReusable() bool {
|
func IsConnectionReusable() bool {
|
||||||
return connectionReuse
|
return connectionReuse
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user