Potential fix for PEM IP SANs issue

This commit is contained in:
Matthieu Grieger 2016-07-01 18:34:43 -07:00
parent d0becb9c10
commit 3de4917972
3 changed files with 6 additions and 1 deletions

View file

@ -1,6 +1,9 @@
MumbleDJ Changelog MumbleDJ Changelog
================== ==================
### July 1, 2016 -- `v3.0.11`
* Potential fix for an issue with IP SANs on PEM certs.
### June 29, 2016 -- `v3.0.10` ### June 29, 2016 -- `v3.0.10`
* Fixed issue related to PEM keys being overwritten by PEM certs. * Fixed issue related to PEM keys being overwritten by PEM certs.

View file

@ -194,6 +194,8 @@ func (dj *MumbleDJ) Connect() error {
if viper.GetBool("connection.insecure") { if viper.GetBool("connection.insecure") {
dj.TLSConfig.InsecureSkipVerify = true dj.TLSConfig.InsecureSkipVerify = true
} }
dj.TLSConfig.ServerName = viper.GetString("connection.address")
if viper.GetString("connection.cert") != "" { if viper.GetString("connection.cert") != "" {
if viper.GetString("connection.key") == "" { if viper.GetString("connection.key") == "" {
viper.Set("connection.key", viper.GetString("connection.cert")) viper.Set("connection.key", viper.GetString("connection.cert"))

View file

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