Skip to content

Commit

Permalink
fix: Revert commit "fix: Only attempt to forcibly set the force-key-a…
Browse files Browse the repository at this point in the history
…uthentication field to false if remove-signed-key-on-join option is set to true"
  • Loading branch information
MemencioPerez committed Jan 1, 2025
1 parent 08d301a commit 0739780
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,13 @@ public void onProxyInitialize(ProxyInitializeEvent event) {

public void loadMainFeatures() throws IOException {
setupConfigurationModule();
Configuration configuration = configurationModule.getConfigurationProvider().get();

if (configuration.removeSignedKeyOnJoin()) {
try {
forciblyDisableForceKeyAuthentication();
} catch (NoSuchFieldException e) {
logger.error("The plugin cannot find 'force-key-authentication' option field, 'remove-signed-key-on-join' option will not work. Contact the developer of this plugin.", e);
} catch (IllegalAccessException e) {
logger.error("The plugin cannot access 'force-key-authentication' option field, 'remove-signed-key-on-join' option will not work. If setting 'force-key-authentication' to 'false' manually and restarting the proxy doesn't work, contact the developer of this plugin.", e);
}
try {
forciblyDisableForceKeyAuthentication();
} catch (NoSuchFieldException e) {
logger.error("The plugin cannot find 'force-key-authentication' option field, 'remove-signed-key-on-join' option will not work. Contact the developer of this plugin.", e);
} catch (IllegalAccessException e) {
logger.error("The plugin cannot access 'force-key-authentication' option field, 'remove-signed-key-on-join' option will not work. If setting 'force-key-authentication' to 'false' manually and restarting the proxy doesn't work, contact the developer of this plugin.", e);
}

setupConfigurablePacketListeners();
Expand Down

0 comments on commit 0739780

Please sign in to comment.