summaryrefslogtreecommitdiff
path: root/cmd/main.go
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-07-07 15:04:52 +0530
committersinanmohd <sinan@sinanmohd.com>2024-07-07 15:07:34 +0530
commit60aa1b7adbd133a5b1679ab2feac4ec17e3b48b5 (patch)
tree082f64ac3ef625fb364227c138a99ba5c571016b /cmd/main.go
parent38bf443cb2f52bd4cc822e69f9339094d846396f (diff)
dns: block blacklisted domains in the database
Diffstat (limited to 'cmd/main.go')
-rw-r--r--cmd/main.go4
1 files changed, 2 insertions, 2 deletions
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)
}