mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-13 17:13:11 +01:00
Fix static build
This commit is contained in:
parent
ea23907492
commit
168a6ff93f
3 changed files with 4 additions and 2 deletions
|
@ -49,7 +49,7 @@ type CryptoHelper struct {
|
||||||
baseLog maulogger.Logger
|
baseLog maulogger.Logger
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewCryptoHelper(bridge *Bridge) *CryptoHelper {
|
func NewCryptoHelper(bridge *Bridge) Crypto {
|
||||||
if !bridge.Config.Bridge.Encryption.Allow {
|
if !bridge.Config.Bridge.Encryption.Allow {
|
||||||
bridge.Log.Debugln("Bridge built with end-to-bridge encryption, but disabled in config")
|
bridge.Log.Debugln("Bridge built with end-to-bridge encryption, but disabled in config")
|
||||||
return nil
|
return nil
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
// You should have received a copy of the GNU Affero General Public License
|
// You should have received a copy of the GNU Affero General Public License
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
// +build cgo
|
||||||
|
|
||||||
package database
|
package database
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -25,7 +25,7 @@ import (
|
||||||
"golang.org/x/image/webp"
|
"golang.org/x/image/webp"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (bridge *Bridge) initCrypto() error {
|
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")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue