1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-11-20 14:39:22 +01:00

Remove early-access release suffix on version string

This commit is contained in:
Christophe De La Fuente 2024-05-14 19:05:32 +02:00
parent d08cbb07bd
commit cde5c5e90e
No known key found for this signature in database
GPG Key ID: 9E350956EA00352A

View File

@ -70,6 +70,12 @@ public class CommandManager {
}
}
// Early-access releases add a "-ea" suffix
// These are the default versions for Alpine
if (version.endsWith("-ea")) {
version = version.substring(0, version.length() - 3);
}
return Integer.parseInt(version) + ExtensionLoader.V1_base;
}