Router debug: Don't show enc. type for local router in tunnel config

as it was always showing ElG which was incorrect
ref: http://zzz.i2p/topics/3403
This commit is contained in:
zzz
2022-09-14 08:28:10 -04:00
parent f64894ea12
commit ab49a149ba

View File

@@ -393,12 +393,17 @@ public abstract class TunnelCreatorConfig implements TunnelInfo {
buf.append(": GW ");
for (int i = 0; i < _peers.length; i++) {
buf.append(_peers[i].toBase64().substring(0,4));
buf.append(isEC(i) ? " EC:" : " ElG:");
long id = _config[i].getReceiveTunnelId();
if (id != 0)
if (id != 0) {
// don't show for "me" at OBGW or IBEP
if (!_isInbound || i != _peers.length - 1)
buf.append(isEC(i) ? " EC:" : " ElG:");
else
buf.append(' ');
buf.append(id);
else
buf.append("me");
} else {
buf.append(" me");
}
id = _config[i].getSendTunnelId();
if (id != 0) {
buf.append('.');