Fixes the issue with the IPv6 addresses in connection quality tooltips.
This commit is contained in:
parent
f3ac51ae66
commit
f9daa25a6c
|
@ -116,5 +116,12 @@ var ConnectionQuality = (function () {
|
||||||
VideoLayout.onStatsStop();
|
VideoLayout.onStatsStop();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the local statistics.
|
||||||
|
*/
|
||||||
|
ConnectionQuality.getStats = function () {
|
||||||
|
return stats;
|
||||||
|
}
|
||||||
|
|
||||||
return ConnectionQuality;
|
return ConnectionQuality;
|
||||||
})();
|
})();
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue