High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: stream installStableBinary instead of reading entire binary into memory
Mario2a51e8973066
diff --git a/orchestrator_types.go b/orchestrator_types.goindex fbd6147e..a5a66dac 100644--- a/orchestrator_types.go+++ b/orchestrator_types.go@@ -2,6 +2,7 @@ package mainimport ("context"+ "io""log/slog""net/http""os"@@ -99,9 +100,18 @@ func NewOrchestrator(baseDir string) *Orchestrator {}func installStableBinary(src, dst string) error {- data, err := os.ReadFile(src)+ in, err := os.Open(src)if err != nil {return err}- return os.WriteFile(dst, data, 0755)+ defer func() { _ = in.Close() }()++ out, err := os.OpenFile(dst, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0755)+ if err != nil {+ return err+ }+ defer func() { _ = out.Close() }()++ _, err = io.Copy(out, in)+ return err}