1
0
mirror of https://github.com/stryan/mumble-discord-bridge.git synced 2024-11-23 05:45:41 -05:00
This commit is contained in:
2xsaiko 2021-03-05 20:15:17 +01:00
parent 80d6b9f8e6
commit 3d9f11ee56

View File

@ -121,11 +121,8 @@ func (b *BridgeState) startBridge() {
}
if b.BridgeConfig.MumbleCertificate != "" {
keyFile := ""
if keyFile == "" {
keyFile = b.BridgeConfig.MumbleCertificate
}
if certificate, err := tls.LoadX509KeyPair(b.BridgeConfig.MumbleCertificate, keyFile); err != nil {
keyFile := b.BridgeConfig.MumbleCertificate
if certificate, err := tls.LoadX509KeyPair(keyFile, keyFile); err != nil {
fmt.Fprintf(os.Stderr, "%s: %s\n", os.Args[0], err)
os.Exit(1)
} else {