mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-06-17 17:10:38 +00:00
Adding mongo support and /antivpn clearcache command
This commit is contained in:
@@ -24,6 +24,10 @@ public interface VPNConfig {
|
||||
|
||||
boolean isDatabaseEnabled();
|
||||
|
||||
boolean useDatabaseCreds();
|
||||
|
||||
String mongoDatabaseURL();
|
||||
|
||||
String getDatabaseType();
|
||||
|
||||
String getDatabaseName();
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.util.function.Consumer;
|
||||
public abstract class VPNExecutor {
|
||||
public static ExecutorService threadExecutor = Executors.newSingleThreadExecutor();
|
||||
|
||||
private static final Map<String, VPNResponse> responseCache = new HashMap<>();
|
||||
public static final Map<String, VPNResponse> responseCache = new HashMap<>();
|
||||
@Getter
|
||||
private final Set<UUID> whitelisted = Collections.synchronizedSet(new HashSet<>());
|
||||
@Getter
|
||||
|
||||
Reference in New Issue
Block a user