diff options
author | rtz12 <koenig@fagott.pw> | 2015-12-19 19:15:53 (UTC) |
---|---|---|
committer | rtz12 <koenig@fagott.pw> | 2015-12-19 19:15:53 (UTC) |
commit | 3ad7db3689a0a4ce6f52ba113559b8976967c3db (patch) | |
tree | 3e72304c1a4c34b13c82aaf4c786fb6936ff79d1 | |
parent | 6a1a381ac4c2cd14637bc97e94450500e4e9f449 (diff) |
Man sollte seinen Schrott vorher testen
-rw-r--r-- | config.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -22,9 +22,9 @@ type Config struct { | |||
22 | func (c *Config) DBConnectionString() string { | 22 | func (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, |