Merge branch '427-disable-ssu1' into 'master'

SSU1: Disable by default (Gitlab #427)

Closes #427

See merge request i2p-hackers/i2p.i2p!115
This commit is contained in:
zzz
2023-09-29 09:58:51 +00:00
2 changed files with 2 additions and 2 deletions

View File

@@ -227,7 +227,7 @@ public class PeerHelper extends HelperBase {
for (int idx = 0; idx < 8; idx += 4) {
if (style.equals("NTCP") && idx == 0)
continue;
if (style.equals("SSU") && idx == 0 && !_context.getBooleanPropertyDefaultTrue(TransportManager.PROP_ENABLE_SSU1))
if (style.equals("SSU") && idx == 0 && !_context.getBooleanProperty(TransportManager.PROP_ENABLE_SSU1))
continue;
rows++;
buf.append("<tr><td align=\"center\"><b>")

View File

@@ -268,7 +268,7 @@ public class TransportManager implements TransportEventListener {
private void configTransports() {
Transport udp = null;
if (_enableUDP) {
boolean enableSSU1 = _context.getBooleanPropertyDefaultTrue(PROP_ENABLE_SSU1);
boolean enableSSU1 = _context.getBooleanProperty(PROP_ENABLE_SSU1);
boolean enableSSU2 = _context.getBooleanPropertyDefaultTrue(PROP_ENABLE_SSU2);
DHSessionKeyBuilder.PrecalcRunner dh = enableSSU1 ? _dhThread : null;
X25519KeyFactory xdh = enableSSU2 ? _xdhThread : null;