|
@@ -215,8 +215,14 @@ ConnectionIndicator.prototype.generateText = function () {
|
215
|
215
|
remote_address_key + "' data-i18n-options='" +
|
216
|
216
|
JSON.stringify({count: data.remoteIP.length})
|
217
|
217
|
+ "'></span></td><td> " +
|
218
|
|
- ConnectionIndicator.getStringFromArray(data.remoteIP) +
|
219
|
|
- "</td></tr>";
|
|
218
|
+ ConnectionIndicator.getStringFromArray(data.remoteIP);
|
|
219
|
+
|
|
220
|
+ // Append (p2p) to indicate the P2P type of transport
|
|
221
|
+ if (isP2P) {
|
|
222
|
+ transport
|
|
223
|
+ += "<span data-i18n='connectionindicator.peer_to_peer'>";
|
|
224
|
+ }
|
|
225
|
+ transport += "</td></tr>";
|
220
|
226
|
|
221
|
227
|
var key_remote = "connectionindicator.remoteport",
|
222
|
228
|
key_local = "connectionindicator.localport";
|
|
@@ -247,12 +253,7 @@ ConnectionIndicator.prototype.generateText = function () {
|
247
|
253
|
+ "'></span></td>" +
|
248
|
254
|
"<td>"
|
249
|
255
|
+ 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>";
|
|
256
|
+ + "</td></tr>";
|
256
|
257
|
|
257
|
258
|
}
|
258
|
259
|
|