Fixes the issue with the IPv6 addresses in connection quality tooltips.

This commit is contained in:
hristoterezov 2014-10-30 10:18:08 +02:00
parent f3ac51ae66
commit f9daa25a6c
2 changed files with 9 additions and 2 deletions

View File

@ -116,5 +116,12 @@ var ConnectionQuality = (function () {
VideoLayout.onStatsStop(); VideoLayout.onStatsStop();
}; };
/**
* Returns the local statistics.
*/
ConnectionQuality.getStats = function () {
return stats;
}
return ConnectionQuality; return ConnectionQuality;
})(); })();

View File

@ -1643,12 +1643,12 @@ var VideoLayout = (function (my) {
ConnectionIndicator.getIP = function(value) ConnectionIndicator.getIP = function(value)
{ {
return value.substring(0, value.indexOf(":")); return value.substring(0, value.lastIndexOf(":"));
}; };
ConnectionIndicator.getPort = function(value) ConnectionIndicator.getPort = function(value)
{ {
return value.substring(value.indexOf(":") + 1, value.length); return value.substring(value.lastIndexOf(":") + 1, value.length);
}; };
ConnectionIndicator.getStringFromArray = function (array) { ConnectionIndicator.getStringFromArray = function (array) {