mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-06-28 14:28:29 +00:00
Shrunk jar file size, fixed errors, added database reload
- Fixed H2 database error on index creation when loading plugin by using dynamic library downloader/loader from Lucko's Helper. - Shrunk jar file size extensively so it can be uploaded to Spigot directly. - Updated h2database driver to 2.1.214 to patch vulnerability - Updated mysql database driver to 8.0.30 to patch vulnerability - Updated MongoDB java driver to 3.12.11.
This commit is contained in:
@@ -258,11 +258,11 @@ public class H2VPN implements VPNDatabase {
|
||||
|
||||
AntiVPN.getInstance().getExecutor().log("Creating indexes...");
|
||||
try {
|
||||
Query.prepare("create index `uuid_1` if not exists on `whitelisted` (`uuid`)").execute();
|
||||
Query.prepare("create index `ip_1` if not exists on `responses` (`ip`)").execute();
|
||||
Query.prepare("create index `proxy_1` if not exists on `responses` (`proxy`)").execute();
|
||||
Query.prepare("create index `inserted_1` if not exists on `responses` (`inserted`)").execute();
|
||||
Query.prepare("create index `ip_1` if not exists on `whitelisted-ips` (`ip`)").execute();
|
||||
Query.prepare("create index if not exists `uuid_1` on `whitelisted` (`uuid`)").execute();
|
||||
Query.prepare("create index if not exists `ip_1` on `responses` (`ip`)").execute();
|
||||
Query.prepare("create index if not exists `proxy_1` on `responses` (`proxy`)").execute();
|
||||
Query.prepare("create index if not exists `inserted_1` on `responses` (`inserted`)").execute();
|
||||
Query.prepare("create index if not exists `ip_1` on `whitelisted-ips` (`ip`)").execute();
|
||||
} catch (Exception e) {
|
||||
System.err.println("MySQL Excepton created" + e.getMessage());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user