mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-01 12:54:07 +00:00
Allow searching on resolved names
This commit is contained in:
parent
be3dbe50dc
commit
2a0d7661e0
1 changed files with 2 additions and 2 deletions
|
@ -277,9 +277,9 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||||
SQLiteDatabase db = this.getReadableDatabase();
|
SQLiteDatabase db = this.getReadableDatabase();
|
||||||
String query = "SELECT ID AS _id, *";
|
String query = "SELECT ID AS _id, *";
|
||||||
query += " FROM log";
|
query += " FROM log";
|
||||||
query += " WHERE daddr LIKE ? OR dport = ? OR uid LIKE ?";
|
query += " WHERE daddr LIKE ? OR dname LIKE ? OR dport = ? OR uid LIKE ?";
|
||||||
query += " ORDER BY time DESC";
|
query += " ORDER BY time DESC";
|
||||||
return db.rawQuery(query, new String[]{"%" + find + "%", find, "%" + find + "%"});
|
return db.rawQuery(query, new String[]{"%" + find + "%", "%" + find + "%", find, "%" + find + "%"});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
Loading…
Reference in a new issue