Commit a3c526ec authored by akwizgran's avatar akwizgran

Merge branch '1298-scrub-wifi-address-in-crash-report' into 'master'

Scrub wifi IP address in crash reports.

Closes #1298

See merge request !1013
parents b29c7d80 dee488d0
Pipeline #2876 passed with stage
in 11 minutes and 21 seconds
......@@ -42,6 +42,7 @@ import static android.content.Context.WIFI_SERVICE;
import static android.net.ConnectivityManager.TYPE_MOBILE;
import static android.net.ConnectivityManager.TYPE_WIFI;
import static android.net.wifi.WifiManager.WIFI_STATE_ENABLED;
import static org.briarproject.bramble.util.PrivacyUtils.scrubInetAddress;
import static org.briarproject.bramble.util.PrivacyUtils.scrubMacAddress;
public class BriarReportPrimer implements ReportPrimer {
......@@ -192,7 +193,7 @@ public class BriarReportPrimer implements ReportPrimer {
int ip3 = (ip >> 16) & 0xFF;
int ip4 = (ip >> 24) & 0xFF;
String address = ip1 + "." + ip2 + "." + ip3 + "." + ip4;
customData.put("Wi-Fi address", address);
customData.put("Wi-Fi address", scrubInetAddress(address));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment