From fa027e50a240ad1600c403fb8f96aa5e6695f3c7 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 12 Feb 2016 22:02:51 +0100 Subject: [PATCH] Remove reverse DNS from access adapter --- .../eu/faircode/netguard/AccessAdapter.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/app/src/main/java/eu/faircode/netguard/AccessAdapter.java b/app/src/main/java/eu/faircode/netguard/AccessAdapter.java index d9681bb6..07dd2072 100644 --- a/app/src/main/java/eu/faircode/netguard/AccessAdapter.java +++ b/app/src/main/java/eu/faircode/netguard/AccessAdapter.java @@ -114,25 +114,6 @@ public class AccessAdapter extends CursorAdapter { Util.getProtocolName(protocol, version, true) + " " + daddr + (dport > 0 ? "/" + dport : "")); - if (Util.isNumericAddress(daddr)) - new AsyncTask() { - @Override - protected String doInBackground(String... args) { - try { - return InetAddress.getByName(args[0]).getHostName(); - } catch (UnknownHostException ignored) { - return args[0]; - } - } - - @Override - protected void onPostExecute(String addr) { - tvDest.setText( - Util.getProtocolName(protocol, version, true) + - " " + addr + (dport > 0 ? "/" + dport : "")); - } - }.execute(daddr); - if (allowed < 0) tvDest.setTextColor(colorText); else if (allowed > 0)