mirror of
https://github.com/MaintainTeam/Hypatia.git
synced 2025-02-28 21:38:21 +03:00
fix: update database url and signing key
This commit is contained in:
parent
8c53d09029
commit
0410db538c
2 changed files with 3 additions and 2 deletions
|
@ -132,6 +132,7 @@ class Database {
|
||||||
signaturesMD5Extended = null;
|
signaturesMD5Extended = null;
|
||||||
domains = null;
|
domains = null;
|
||||||
File publicKey = new File(databasePath + "/gpg.key");
|
File publicKey = new File(databasePath + "/gpg.key");
|
||||||
|
|
||||||
GPGDetachedSignatureVerifier verifier = new GPGDetachedSignatureVerifier(Utils.getSigningKey(context));
|
GPGDetachedSignatureVerifier verifier = new GPGDetachedSignatureVerifier(Utils.getSigningKey(context));
|
||||||
for (SignatureDatabase database : signatureDatabases) {
|
for (SignatureDatabase database : signatureDatabases) {
|
||||||
File databaseLocation = new File(databasePath + "/" + database.getName());
|
File databaseLocation = new File(databasePath + "/" + database.getName());
|
||||||
|
|
|
@ -44,9 +44,9 @@ class Utils {
|
||||||
private static Context context = null;
|
private static Context context = null;
|
||||||
public final static int MAX_SCAN_SIZE = (1000 * 1000) * 500; //500MB
|
public final static int MAX_SCAN_SIZE = (1000 * 1000) * 500; //500MB
|
||||||
public final static int MAX_SCAN_SIZE_REALTIME = (1000 * 1000) * 250; //250MB
|
public final static int MAX_SCAN_SIZE_REALTIME = (1000 * 1000) * 250; //250MB
|
||||||
public final static String DATABASE_URL_DEFAULT = "https://divested.dev/MalwareScannerSignatures/";
|
public final static String DATABASE_URL_DEFAULT = "https://raw.githubusercontent.com/MaintainTeam/HypatiaDatabases/refs/heads/main/";
|
||||||
public final static String DATABASE_URL_CLOUDFLARE = "https://eeyo.re/MalwareScannerSignatures/";
|
public final static String DATABASE_URL_CLOUDFLARE = "https://eeyo.re/MalwareScannerSignatures/";
|
||||||
public final static String SIGNING_KEY_DEFAULT = "BADFCABDDBF5B694";
|
public final static String SIGNING_KEY_DEFAULT = "5298C0C0C3E73288";
|
||||||
|
|
||||||
public static final AtomicInteger FILES_SCANNED = new AtomicInteger();
|
public static final AtomicInteger FILES_SCANNED = new AtomicInteger();
|
||||||
public final static ConcurrentHashMap<String, Long> MATCHED_FILES_TIME = new ConcurrentHashMap<>();
|
public final static ConcurrentHashMap<String, Long> MATCHED_FILES_TIME = new ConcurrentHashMap<>();
|
||||||
|
|
Loading…
Add table
Reference in a new issue