From 60aa1b7adbd133a5b1679ab2feac4ec17e3b48b5 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 7 Jul 2024 15:04:52 +0530 Subject: dns: block blacklisted domains in the database --- cmd/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/main.go b/cmd/main.go index 6597749..540f9da 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -11,8 +11,8 @@ import ( "github.com/jackc/pgx/v5" "sinanmohd.com/redq/api" "sinanmohd.com/redq/db" - "sinanmohd.com/redq/usage" "sinanmohd.com/redq/dns" + "sinanmohd.com/redq/usage" ) func main() { @@ -29,7 +29,7 @@ func main() { defer conn.Close(ctx) queries := db.New(conn) - d, err := dns.New() + d, err := dns.New(queries, ctx) if err != nil { os.Exit(0) } -- cgit v1.2.3