MDL-14406

MNET can now establish a peer through a proxy

Merged from STABLE_19
This commit is contained in:
thepurpleblob 2008-04-30 14:35:32 +00:00
parent f995580108
commit 2e34d3f979
3 changed files with 33 additions and 3 deletions

View file

@ -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) {