3 declare(strict_types=1);
26 "Can establish a connection to proxy",
27 function (Setup\
Environment $env) use ($config):
bool {
29 $host = $config->getProxyHost();
30 if (strspn($host,
'.0123456789') != strlen($host) && strstr($host,
'/') ===
false) {
31 $host = gethostbyname($host);
33 $port = $config->getProxyPort() % 65536;
35 if (!fsockopen($host, $port, $errno, $errstr, 10)) {
36 throw new Exception(
"Can`t establish connection to proxy.");
44 "Can`t establish connection to proxy."
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An environment holds resources to be used in the setup process.
A condition that can't be met by ILIAS itself needs to be met by some external means.