mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Fixed infalid config references in Service Worker
This commit is contained in:
parent
852f17c2ac
commit
a7a8c5499b
@ -56,7 +56,7 @@ namespace Teknik.ServiceWorker
|
|||||||
using (TeknikEntities db = new TeknikEntities(optionsBuilder.Options))
|
using (TeknikEntities db = new TeknikEntities(optionsBuilder.Options))
|
||||||
{
|
{
|
||||||
// Scan all the uploads for viruses, and remove the bad ones
|
// Scan all the uploads for viruses, and remove the bad ones
|
||||||
if (options.ScanUploads && config.UploadConfig.VirusScanEnable)
|
if (options.ScanUploads && config.UploadConfig.ClamConfig.Enabled)
|
||||||
{
|
{
|
||||||
ScanUploads(config, db);
|
ScanUploads(config, db);
|
||||||
}
|
}
|
||||||
@ -182,7 +182,7 @@ namespace Teknik.ServiceWorker
|
|||||||
using (FileStream fs = new FileStream(filePath, FileMode.Open, FileAccess.Read))
|
using (FileStream fs = new FileStream(filePath, FileMode.Open, FileAccess.Read))
|
||||||
using (AesCounterStream aesStream = new AesCounterStream(fs, false, keyBytes, ivBytes))
|
using (AesCounterStream aesStream = new AesCounterStream(fs, false, keyBytes, ivBytes))
|
||||||
{
|
{
|
||||||
ClamClient clam = new ClamClient(config.UploadConfig.ClamServer, config.UploadConfig.ClamPort);
|
ClamClient clam = new ClamClient(config.UploadConfig.ClamConfig.Server, config.UploadConfig.ClamConfig.Port);
|
||||||
clam.MaxStreamSize = maxUploadSize;
|
clam.MaxStreamSize = maxUploadSize;
|
||||||
ClamScanResult scanResult = await clam.SendAndScanFileAsync(fs);
|
ClamScanResult scanResult = await clam.SendAndScanFileAsync(fs);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user