advanced crypto restricted by server role

This commit is contained in:
zotlabs
2016-11-30 16:36:33 -08:00
parent 5b09829959
commit c845eed114
2 changed files with 6 additions and 0 deletions

View File

@@ -166,6 +166,9 @@ function zot_build_packet($channel, $type = 'notify', $recipients = null, $remot
function zot_best_algorithm($methods) {
if(\Zotlabs\Lib\System::get_server_role() !== 'pro')
return 'aes256cbc';
if($methods) {
$x = explode(',',$methods);
if($x) {