mirror of https://github.com/M66B/NetGuard.git
Merge pull request #498 from DrunkenSasquatch/master
Use HTTPS for lookup services
This commit is contained in:
commit
bdb4894826
|
@ -194,14 +194,14 @@ public class ActivityLog extends AppCompatActivity implements SharedPreferences.
|
|||
popup.getMenu().findItem(R.id.menu_protocol).setTitle(Util.getProtocolName(protocol, version, false));
|
||||
|
||||
// Whois
|
||||
final Intent lookupIP = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.tcpiputils.com/whois-lookup/" + ip));
|
||||
final Intent lookupIP = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.tcpiputils.com/whois-lookup/" + ip));
|
||||
if (pm.resolveActivity(lookupIP, 0) == null)
|
||||
popup.getMenu().removeItem(R.id.menu_whois);
|
||||
else
|
||||
popup.getMenu().findItem(R.id.menu_whois).setTitle(getString(R.string.title_log_whois, ip));
|
||||
|
||||
// Lookup port
|
||||
final Intent lookupPort = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.speedguide.net/port.php?port=" + port));
|
||||
final Intent lookupPort = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.speedguide.net/port.php?port=" + port));
|
||||
if (port <= 0 || pm.resolveActivity(lookupPort, 0) == null)
|
||||
popup.getMenu().removeItem(R.id.menu_port);
|
||||
else
|
||||
|
|
|
@ -680,14 +680,14 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> im
|
|||
markPro(popup.getMenu().findItem(R.id.menu_block), ActivityPro.SKU_FILTER);
|
||||
|
||||
// Whois
|
||||
final Intent lookupIP = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.tcpiputils.com/whois-lookup/" + daddr));
|
||||
final Intent lookupIP = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.tcpiputils.com/whois-lookup/" + daddr));
|
||||
if (pm.resolveActivity(lookupIP, 0) == null)
|
||||
popup.getMenu().removeItem(R.id.menu_whois);
|
||||
else
|
||||
popup.getMenu().findItem(R.id.menu_whois).setTitle(context.getString(R.string.title_log_whois, daddr));
|
||||
|
||||
// Lookup port
|
||||
final Intent lookupPort = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.speedguide.net/port.php?port=" + dport));
|
||||
final Intent lookupPort = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.speedguide.net/port.php?port=" + dport));
|
||||
if (dport <= 0 || pm.resolveActivity(lookupPort, 0) == null)
|
||||
popup.getMenu().removeItem(R.id.menu_port);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue