Skip to content

Commit

Permalink
Merge pull request #158 from gost/fix-GOST_MQTT_SSL_ENABLED
Browse files Browse the repository at this point in the history
Update environment.go
  • Loading branch information
tebben committed Oct 15, 2018
2 parents a280c77 + bebfe64 commit faa20d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configuration/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func setEnvironmentDatabaseSettings(conf *Config) {
conf.Database.Schema = gostDbSchema
}

gostDbSSL := os.Getenv("GOST_MQTT_SSL_ENABLED")
gostDbSSL := os.Getenv("GOST_DB_SSL_ENABLED")
if gostDbSSL != "" {
h, err := strconv.ParseBool(gostDbSSL)
if err == nil {
Expand Down
2 changes: 1 addition & 1 deletion configuration/environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func TestEnvironmentVariabels(t *testing.T) {
os.Setenv("GOST_DB_PASSWORD", dbPassword)
os.Setenv("GOST_DB_DATABASE", dbDB)
os.Setenv("GOST_DB_SCHEMA", dbSchema)
os.Setenv("GOST_MQTT_SSL_ENABLED", dbSSLEnabled)
os.Setenv("GOST_DB_SSL_ENABLED", dbSSLEnabled)
os.Setenv("GOST_DB_MAX_IDLE_CONS", dbMaxIdleCons)
os.Setenv("GOST_DB_MAX_OPEN_CONS", dbMaxOpenCons)

Expand Down

0 comments on commit faa20d9

Please sign in to comment.