mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-14406
MNET can now establish a peer through a proxy Merged from STABLE_19
This commit is contained in:
parent
f995580108
commit
2e34d3f979
3 changed files with 33 additions and 3 deletions
|
@ -51,7 +51,7 @@ class mnet_peer {
|
|||
|
||||
// TODO: In reality, this will be prohibitively slow... need another
|
||||
// default - maybe blank string
|
||||
$homepage = file_get_contents($wwwroot);
|
||||
$homepage = download_file_content($wwwroot);
|
||||
if (!empty($homepage)) {
|
||||
$count = preg_match("@<title>(.*)</title>@siU", $homepage, $matches);
|
||||
if ($count > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue