clamscan icon indicating copy to clipboard operation
clamscan copied to clipboard

fix: file is always null when using a server via tcp

Open Gamewalker opened this issue 2 years ago • 1 comments
trafficstars

fix: file is always null when a file is turned into a stream and then sent to a server

Gamewalker avatar Apr 24 '23 16:04 Gamewalker

I still had issues with this, but it pointed me in the right direction!

The following worked for me as I was using a callback

return hasCb ? cb(null, file, {...isInfected, file}, []) : resolve({ ...isInfected, file});

renchey avatar May 03 '23 01:05 renchey

Looks great! Thanks! (And sorry for the delay)

kylefarris avatar Mar 18 '24 16:03 kylefarris