mirror of
https://github.com/szimek/sharedrop.git
synced 2026-06-13 21:03:07 +08:00
Fix local IP discovery in Chrome 38
This commit is contained in:
parent
146a62aff9
commit
bd2dc5d023
@ -253,7 +253,7 @@ ShareDrop.App.IndexController = Ember.ArrayController.extend({
|
||||
for (i = 0; i < lines.length; i++) {
|
||||
var line = lines[i];
|
||||
|
||||
if (~line.indexOf("a=candidate")) {
|
||||
if (~line.indexOf("a=candidate") || line.match(/^candidate:\d+\s/)) {
|
||||
parts = line.split(' ');
|
||||
addr = parts[4];
|
||||
type = parts[7];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user