forked from I2P_Developers/i2p.i2p
Reseed: SSL only by default
This commit is contained in:
@@ -51,7 +51,7 @@ public class ConfigReseedHelper extends HelperBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String modeChecked(int mode) {
|
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);
|
boolean disabled = _context.getBooleanProperty(Reseeder.PROP_SSL_DISABLE);
|
||||||
if ((mode == 0 && (!disabled) && (!required)) ||
|
if ((mode == 0 && (!disabled) && (!required)) ||
|
||||||
(mode == 1 && (!disabled) && required) ||
|
(mode == 1 && (!disabled) && required) ||
|
||||||
|
@@ -273,7 +273,7 @@ public class Reseeder {
|
|||||||
String URLs = _context.getProperty(PROP_RESEED_URL);
|
String URLs = _context.getProperty(PROP_RESEED_URL);
|
||||||
boolean defaulted = URLs == null;
|
boolean defaulted = URLs == null;
|
||||||
boolean SSLDisable = _context.getBooleanProperty(PROP_SSL_DISABLE);
|
boolean SSLDisable = _context.getBooleanProperty(PROP_SSL_DISABLE);
|
||||||
boolean SSLRequired = _context.getBooleanProperty(PROP_SSL_REQUIRED);
|
boolean SSLRequired = _context.getBooleanPropertyDefaultTrue(PROP_SSL_REQUIRED);
|
||||||
if (defaulted) {
|
if (defaulted) {
|
||||||
if (SSLDisable)
|
if (SSLDisable)
|
||||||
URLs = DEFAULT_SEED_URL;
|
URLs = DEFAULT_SEED_URL;
|
||||||
|
Reference in New Issue
Block a user