Reseed: SSL only by default

This commit is contained in:
zzz
2014-11-02 16:16:01 +00:00
parent 6ca0c54ba7
commit 702830ad0e
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ public class ConfigReseedHelper extends HelperBase {
}
public String modeChecked(int mode) {
boolean required = _context.getBooleanProperty(Reseeder.PROP_SSL_REQUIRED);
boolean required = _context.getBooleanPropertyDefaultTrue(Reseeder.PROP_SSL_REQUIRED);
boolean disabled = _context.getBooleanProperty(Reseeder.PROP_SSL_DISABLE);
if ((mode == 0 && (!disabled) && (!required)) ||
(mode == 1 && (!disabled) && required) ||

View File

@@ -273,7 +273,7 @@ public class Reseeder {
String URLs = _context.getProperty(PROP_RESEED_URL);
boolean defaulted = URLs == null;
boolean SSLDisable = _context.getBooleanProperty(PROP_SSL_DISABLE);
boolean SSLRequired = _context.getBooleanProperty(PROP_SSL_REQUIRED);
boolean SSLRequired = _context.getBooleanPropertyDefaultTrue(PROP_SSL_REQUIRED);
if (defaulted) {
if (SSLDisable)
URLs = DEFAULT_SEED_URL;