no-crypto.go 322 B

1234567891011
  1. // +build !cgo nocrypto
  2. package main
  3. func NewCryptoHelper(bridge *Bridge) Crypto {
  4. if !bridge.Config.Bridge.Encryption.Allow {
  5. bridge.Log.Warnln("Bridge built without end-to-bridge encryption, but encryption is enabled in config")
  6. }
  7. bridge.Log.Debugln("Bridge built without end-to-bridge encryption")
  8. return nil
  9. }