Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Do not check if loop back (support info)
Browse files Browse the repository at this point in the history
A choice has to be made here, either restricting the loopback address or not restricting a non loopback address
  • Loading branch information
M66B committed Feb 28, 2014
1 parent 13d477b commit 4aad9ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/biz/bokhorst/xprivacy/XNetworkInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.net.InetAddress;
import java.net.InterfaceAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Collections;
Expand Down Expand Up @@ -77,7 +78,7 @@ protected void after(XParam param) throws Throwable {
} else if (getRestrictionName().equals(PrivacyManager.cNetwork)) {
// Network
NetworkInterface ni = (NetworkInterface) param.thisObject;
if (ni != null && !ni.isLoopback())
if (ni != null)
if (param.getResult() != null && isRestricted(param))
if (mMethod == Methods.getHardwareAddress) {
String mac = (String) PrivacyManager.getDefacedProp(Binder.getCallingUid(), "MAC");
Expand Down

0 comments on commit 4aad9ce

Please sign in to comment.