forked from I2P_Developers/i2p.i2p
* Reseed: Disable HTTPS until we have enough working hosts again
This commit is contained in:
@ -22,7 +22,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.getBooleanProperty(Reseeder.PROP_SSL_REQUIRED);
|
||||||
boolean disabled = _context.getBooleanProperty(Reseeder.PROP_SSL_DISABLE);
|
boolean disabled = _context.getBooleanPropertyDefaultTrue(Reseeder.PROP_SSL_DISABLE);
|
||||||
if ((mode == 0 && (!disabled) && (!required)) ||
|
if ((mode == 0 && (!disabled) && (!required)) ||
|
||||||
(mode == 1 && (!disabled) && required) ||
|
(mode == 1 && (!disabled) && required) ||
|
||||||
(mode == 2 && disabled))
|
(mode == 2 && disabled))
|
||||||
|
@ -173,7 +173,7 @@ public class Reseeder {
|
|||||||
List<String> URLList = new ArrayList();
|
List<String> URLList = new ArrayList();
|
||||||
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.getBooleanPropertyDefaultTrue(PROP_SSL_DISABLE);
|
||||||
if (defaulted) {
|
if (defaulted) {
|
||||||
if (SSLDisable)
|
if (SSLDisable)
|
||||||
URLs = DEFAULT_SEED_URL;
|
URLs = DEFAULT_SEED_URL;
|
||||||
|
Reference in New Issue
Block a user