aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2015-12-19 19:15:53 (UTC)
committerrtz12 <koenig@fagott.pw>2015-12-19 19:15:53 (UTC)
commit3ad7db3689a0a4ce6f52ba113559b8976967c3db (patch)
tree3e72304c1a4c34b13c82aaf4c786fb6936ff79d1
parent6a1a381ac4c2cd14637bc97e94450500e4e9f449 (diff)
Man sollte seinen Schrott vorher testen
-rw-r--r--config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.go b/config.go
index 65e15ba..b7149a6 100644
--- a/config.go
+++ b/config.go
@@ -22,9 +22,9 @@ type Config struct {
22func (c *Config) DBConnectionString() string { 22func (c *Config) DBConnectionString() string {
23 var sslmode string 23 var sslmode string
24 if c.Database.SSLEnabled { 24 if c.Database.SSLEnabled {
25 sslmode = "enabled" 25 sslmode = "require"
26 } else { 26 } else {
27 sslmode = "disabled" 27 sslmode = "disable"
28 } 28 }
29 return fmt.Sprintf("host=%s user=%s dbname=%s password=%s sslmode=%s", 29 return fmt.Sprintf("host=%s user=%s dbname=%s password=%s sslmode=%s",
30 c.Database.Hostname, 30 c.Database.Hostname,