Fix https://github.com/matthieugrieger/mumbledj/issues/162: Key is no longer mistakenly overwritten by cert

This commit is contained in:
Matthieu Grieger 2016-06-29 19:08:01 -07:00
parent cb1bc84323
commit d0becb9c10
3 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,9 @@
MumbleDJ Changelog
==================
### June 29, 2016 -- `v3.0.10`
* Fixed issue related to PEM keys being overwritten by PEM certs.
### June 28, 2016 -- `v3.0.9`
* Queue is now reset after disconnecting from the server to avoid unpredictable behavior.

View file

@ -195,7 +195,7 @@ func (dj *MumbleDJ) Connect() error {
dj.TLSConfig.InsecureSkipVerify = true
}
if viper.GetString("connection.cert") != "" {
if viper.GetString("connection.key") != "" {
if viper.GetString("connection.key") == "" {
viper.Set("connection.key", viper.GetString("connection.cert"))
}

View file

@ -32,7 +32,7 @@ func init() {
services.DJ = DJ
bot.DJ = DJ
DJ.Version = "v3.0.9"
DJ.Version = "v3.0.10"
logrus.SetLevel(logrus.WarnLevel)
}