From 5695a77b2a3b474f6473210cc205bd7baafec009 Mon Sep 17 00:00:00 2001 From: Mark Mulder Date: Sun, 11 Oct 2015 19:17:53 +0100 Subject: [PATCH] Use DB password from environment variables --- notifilter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifilter.go b/notifilter.go index e9a889d..67a8e41 100644 --- a/notifilter.go +++ b/notifilter.go @@ -179,7 +179,7 @@ func main() { } go listenToUDP(conn) - pgStr := fmt.Sprintf("host=%s user=%s dbname=%s sslmode=disable", C.DBHost, C.DBUser, C.DBName) + pgStr := fmt.Sprintf("host=%s user=%s password=%s dbname=%s sslmode=disable", C.DBHost, C.DBUser, C.DBPassword, C.DBName) db, err = sqlx.Connect("postgres", pgStr) if err != nil { log.Fatal("DB Open()", err)