mirror of
https://github.com/stryan/mumble-discord-bridge.git
synced 2024-11-14 11:45:40 -05:00
Cleanup
This commit is contained in:
parent
80d6b9f8e6
commit
3d9f11ee56
@ -121,11 +121,8 @@ func (b *BridgeState) startBridge() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if b.BridgeConfig.MumbleCertificate != "" {
|
if b.BridgeConfig.MumbleCertificate != "" {
|
||||||
keyFile := ""
|
keyFile := b.BridgeConfig.MumbleCertificate
|
||||||
if keyFile == "" {
|
if certificate, err := tls.LoadX509KeyPair(keyFile, keyFile); err != nil {
|
||||||
keyFile = b.BridgeConfig.MumbleCertificate
|
|
||||||
}
|
|
||||||
if certificate, err := tls.LoadX509KeyPair(b.BridgeConfig.MumbleCertificate, keyFile); err != nil {
|
|
||||||
fmt.Fprintf(os.Stderr, "%s: %s\n", os.Args[0], err)
|
fmt.Fprintf(os.Stderr, "%s: %s\n", os.Args[0], err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user