|
@@ -198,6 +198,9 @@ ConnectionIndicator.prototype.generateText = function () {
|
198
|
198
|
}
|
199
|
199
|
}
|
200
|
200
|
|
|
201
|
+ // All of the transports should be either P2P or JVB
|
|
202
|
+ const isP2P = this.transport.length ? this.transport[0].p2p : false;
|
|
203
|
+
|
201
|
204
|
var local_address_key = "connectionindicator.localaddress";
|
202
|
205
|
var remote_address_key = "connectionindicator.remoteaddress";
|
203
|
206
|
var localTransport =
|
|
@@ -243,8 +246,13 @@ ConnectionIndicator.prototype.generateText = function () {
|
243
|
246
|
JSON.stringify({count: data.transportType.length})
|
244
|
247
|
+ "'></span></td>" +
|
245
|
248
|
"<td>"
|
246
|
|
- + ConnectionIndicator.getStringFromArray(data.transportType)
|
247
|
|
- + "</td></tr>";
|
|
249
|
+ + ConnectionIndicator.getStringFromArray(data.transportType);
|
|
250
|
+ // Append (direct) to indicate the P2P type of transport
|
|
251
|
+ if (isP2P) {
|
|
252
|
+ transport += "<span data-i18n='connectionindicator.direct'>";
|
|
253
|
+ }
|
|
254
|
+ // Close "type" column and end table row
|
|
255
|
+ transport += "</td></tr>";
|
248
|
256
|
|
249
|
257
|
}
|
250
|
258
|
|