Avoid unnecessary domain fronting, #711
This commit is contained in:
1 parent
dcb9a50061
commit
1c0785432b
3 files changed
+8
-4
No files matched your search
@@ -291,7 +291,7 @@ public class Hosts {
|
||||
}
|
||||
}
|
||||
|
||||
private boolean contains(String host) {
|
||||
public boolean contains(String host) {
|
||||
try (Cursor cursor = db.rawQuery("SELECT * FROM " + TABLE_HOSTS + " WHERE " + COLUMN_HOST + " = ?;", new String[]{host})) {
|
||||
return cursor.moveToNext();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user