mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 991988 - Resolve HostName of either MMS Proxy or MMSC. r=vyang
This commit is contained in:
parent
8799eb119a
commit
8ea1e5890f
@ -489,7 +489,14 @@ NetworkManager.prototype = {
|
||||
debug("Network '" + network.name + "' registered, " +
|
||||
"adding mmsproxy and/or mmsc route");
|
||||
|
||||
let mmsHosts = this.resolveHostname([network.mmsProxy, network.mmsc]);
|
||||
let hostToResolve = network.mmsProxy;
|
||||
// Workaround an xpconnect issue with undefined string objects.
|
||||
// See bug 808220
|
||||
if (!hostToResolve || hostToResolve === "undefined") {
|
||||
hostToResolve = network.mmsc;
|
||||
}
|
||||
|
||||
let mmsHosts = this.resolveHostname([hostToResolve]);
|
||||
if (mmsHosts.length == 0) {
|
||||
debug("No valid hostnames can be added. Stop adding host route.");
|
||||
return;
|
||||
@ -511,7 +518,14 @@ NetworkManager.prototype = {
|
||||
debug("Network '" + network.name + "' unregistered, " +
|
||||
"removing mmsproxy and/or mmsc route");
|
||||
|
||||
let mmsHosts = this.resolveHostname([network.mmsProxy, network.mmsc]);
|
||||
let hostToResolve = network.mmsProxy;
|
||||
// Workaround an xpconnect issue with undefined string objects.
|
||||
// See bug 808220
|
||||
if (!hostToResolve || hostToResolve === "undefined") {
|
||||
hostToResolve = network.mmsc;
|
||||
}
|
||||
|
||||
let mmsHosts = this.resolveHostname([hostToResolve]);
|
||||
if (mmsHosts.length == 0) {
|
||||
debug("No valid hostnames can be removed. Stop removing host route.");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user