MDL-73514 mnet: fix promiscuous mode and php80 support

This commit is contained in:
Eloy Lafuente (stronk7)
2022-01-28 20:10:39 +01:00
parent 4f9a539600
commit fcbe439c4d
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -107,6 +107,7 @@ class mnet_peer {
return false;
}
$this->bootstrapped = true;
return true;
}
/*
+1 -1
View File
@@ -530,7 +530,7 @@ function mnet_keyswap($function, $params) {
if (!empty($CFG->mnet_register_allhosts)) {
$mnet_peer = new mnet_peer();
@list($wwwroot, $pubkey, $application) = each($params);
list($wwwroot, $pubkey, $application) = $params;
$keyok = $mnet_peer->bootstrap($wwwroot, $pubkey, $application);
if ($keyok) {
$mnet_peer->commit();