MDL-73514 mnet: fix promiscuous mode and php80 support
This commit is contained in:
@@ -107,6 +107,7 @@ class mnet_peer {
|
||||
return false;
|
||||
}
|
||||
$this->bootstrapped = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user