Darien Raymond %!s(int64=7) %!d(string=hai) anos
pai
achega
70b2b22047
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      transport/pipe/pipe.go

+ 3 - 1
transport/pipe/pipe.go

@@ -57,5 +57,7 @@ func init() {
 		Name:    raySizeEnvKey,
 		AltName: platform.NormalizeEnvName(raySizeEnvKey),
 	}.GetValueAsInt(10)
-	defaultLimit = int32(size) * 1024 * 1024
+	if size > 0 {
+		defaultLimit = int32(size) * 1024 * 1024
+	}
 }