зеркало из https://github.com/mozilla/gecko-dev.git
Bug 762425 - Always reconfigure network if found connected interface. r=philikon
This commit is contained in:
Родитель
93a9a8bc5d
Коммит
ffba851afb
|
@ -175,7 +175,7 @@ NetworkManager.prototype = {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (this.active && (oldActive != this.active)) {
|
||||
if (this.active) {
|
||||
this.setDefaultRouteAndDNS(oldActive);
|
||||
}
|
||||
},
|
||||
|
@ -185,7 +185,7 @@ NetworkManager.prototype = {
|
|||
let options = {
|
||||
cmd: this.active.dhcp ? "runDHCPAndSetDefaultRouteAndDNS" : "setDefaultRouteAndDNS",
|
||||
ifname: this.active.name,
|
||||
oldIfname: oldInterface ? oldInterface.name : null
|
||||
oldIfname: (oldInterface && oldInterface != this.active) ? oldInterface.name : null
|
||||
};
|
||||
this.worker.postMessage(options);
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче