use contains domain name

This commit is contained in:
Riccardo
2021-10-26 21:35:27 +02:00
parent d96d377506
commit f965ee0fa0

View File

@@ -461,7 +461,7 @@ CREATE TABLE IF NOT EXISTS dns_logs
command.Parameters.AddWithValue("@rcode", (byte)rcode);
if (qname is not null)
command.Parameters.Add(new SqliteParameter("@qname", "%"+qname+"%"));
command.Parameters.AddWithValue("@qname", "%"+qname+"%");
if (qtype is not null)
command.Parameters.AddWithValue("@qtype", (ushort)qtype);