From ee4883b4489f25082809cbd6384b392f3b75f8bd Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Tue, 28 Oct 2014 22:16:38 -0500 Subject: [PATCH] Use ssl flag when generating connection string, remove hardcoded value --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index f2d5d2a..56fb186 100644 --- a/main.go +++ b/main.go @@ -37,9 +37,10 @@ func getConnectionString() string { } return fmt.Sprintf( - "host=%s port=%d user=%s dbname=%s sslmode=disable", + "host=%s port=%d user=%s dbname=%s sslmode=%s", options.Host, options.Port, options.User, options.DbName, + options.Ssl, ) }