From e324d7d2515a27e5d00862ffeda79f421b2832d7 Mon Sep 17 00:00:00 2001 From: mr-alice Date: Thu, 3 Nov 2016 20:31:47 +0100 Subject: [PATCH] removed warning in ftserver for rejected non encrypted tunnels --- libretroshare/src/ft/ftserver.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/ft/ftserver.cc b/libretroshare/src/ft/ftserver.cc index f8f6821ae..49644ba68 100644 --- a/libretroshare/src/ft/ftserver.cc +++ b/libretroshare/src/ft/ftserver.cc @@ -596,9 +596,11 @@ bool ftServer::handleTunnelRequest(const RsFileHash& hash,const RsPeerId& peer_i } } - if(mFtController->defaultEncryptionPolicy() == RS_FILE_CTRL_ENCRYPTION_POLICY_STRICT && hash == real_hash) + if(found && mFtController->defaultEncryptionPolicy() == RS_FILE_CTRL_ENCRYPTION_POLICY_STRICT && hash == real_hash) { +#ifdef SERVER_DEBUG std::cerr << "(WW) rejecting file transfer for hash " << hash << " because the hash is not encrypted and encryption policy requires it." << std::endl; +#endif return false ; }