Fix no-crypto build

This commit is contained in:
Tulir Asokan 2020-09-24 15:49:13 +03:00
parent d67c3a8c96
commit 34163859f0

View file

@ -2,6 +2,10 @@
package main package main
import (
"errors"
)
func NewCryptoHelper(bridge *Bridge) Crypto { func NewCryptoHelper(bridge *Bridge) Crypto {
if !bridge.Config.Bridge.Encryption.Allow { if !bridge.Config.Bridge.Encryption.Allow {
bridge.Log.Warnln("Bridge built without end-to-bridge encryption, but encryption is enabled in config") bridge.Log.Warnln("Bridge built without end-to-bridge encryption, but encryption is enabled in config")