Browse Source

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

j8
hristoterezov 10 years ago
parent
commit
f9daa25a6c
2 changed files with 9 additions and 2 deletions
  1. 7
    0
      connectionquality.js
  2. 2
    2
      videolayout.js

+ 7
- 0
connectionquality.js View File

116
         VideoLayout.onStatsStop();
116
         VideoLayout.onStatsStop();
117
     };
117
     };
118
 
118
 
119
+    /**
120
+     * Returns the local statistics.
121
+     */
122
+    ConnectionQuality.getStats = function () {
123
+        return stats;
124
+    }
125
+
119
     return ConnectionQuality;
126
     return ConnectionQuality;
120
 })();
127
 })();

+ 2
- 2
videolayout.js View File

1643
 
1643
 
1644
     ConnectionIndicator.getIP = function(value)
1644
     ConnectionIndicator.getIP = function(value)
1645
     {
1645
     {
1646
-        return value.substring(0, value.indexOf(":"));
1646
+        return value.substring(0, value.lastIndexOf(":"));
1647
     };
1647
     };
1648
 
1648
 
1649
     ConnectionIndicator.getPort = function(value)
1649
     ConnectionIndicator.getPort = function(value)
1650
     {
1650
     {
1651
-        return value.substring(value.indexOf(":") + 1, value.length);
1651
+        return value.substring(value.lastIndexOf(":") + 1, value.length);
1652
     };
1652
     };
1653
 
1653
 
1654
     ConnectionIndicator.getStringFromArray = function (array) {
1654
     ConnectionIndicator.getStringFromArray = function (array) {

Loading…
Cancel
Save