Skip to content

Commit

Permalink
MDL-73514 mnet: fix promiscuous mode and php80 support
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jan 28, 2022
1 parent 4f9a539 commit fcbe439
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mnet/peer.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ function bootstrap($wwwroot, $pubkey, $application) {
return false;
}
$this->bootstrapped = true;
return true;
}

/*
Expand Down
2 changes: 1 addition & 1 deletion mnet/xmlrpc/serverlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit fcbe439

Please sign in to comment.