v2ray 9 tahun lalu
induk
melakukan
ffce784dce
2 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 2 0
      transport/config.go
  2. 1 0
      transport/transport.go

+ 2 - 0
transport/config.go

@@ -1,9 +1,11 @@
 package transport
 
+// Config for V2Ray transport layer.
 type Config struct {
 	ConnectionReuse bool
 }
 
+// Apply applies this Config.
 func (this *Config) Apply() error {
 	if this.ConnectionReuse {
 		connectionReuse = true

+ 1 - 0
transport/transport.go

@@ -4,6 +4,7 @@ var (
 	connectionReuse = true
 )
 
+// IsConnectionReusable returns true if V2Ray is trying to reuse TCP connections.
 func IsConnectionReusable() bool {
 	return connectionReuse
 }