Bug 1018164 - Fix IP address recovery in PushService. r=nsm

This commit is contained in:
Fernando Rodriguez Sela 2014-06-03 23:45:00 -04:00
parent 12c0e29242
commit 3d041e4c8e

View File

@ -1494,10 +1494,13 @@ this.PushService = {
let iccInfo = icc.getIccInfo(clientId);
if (iccInfo) {
debug("Running on mobile data");
let ips = {};
let prefixLengths = {};
nm.active.getAddresses(ips, prefixLengths);
return {
mcc: iccInfo.mcc,
mnc: iccInfo.mnc,
ip: nm.active.ip
ip: ips.value[0]
}
}
}