mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-40179 auth_cas: change is_proxybypass parameter to use server url
This commit is contained in:
parent
dda862abb5
commit
e450eb32d9
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ class auth_plugin_cas extends auth_plugin_ldap {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If Moodle is configured to use a proxy, phpCAS needs some curl options set.
|
// If Moodle is configured to use a proxy, phpCAS needs some curl options set.
|
||||||
if (!empty($CFG->proxyhost) && !is_proxybypass($this->config->hostname)) {
|
if (!empty($CFG->proxyhost) && !is_proxybypass(phpCAS::getServerLoginURL())) {
|
||||||
phpCAS::setExtraCurlOption(CURLOPT_PROXY, $CFG->proxyhost);
|
phpCAS::setExtraCurlOption(CURLOPT_PROXY, $CFG->proxyhost);
|
||||||
if (!empty($CFG->proxyport)) {
|
if (!empty($CFG->proxyport)) {
|
||||||
phpCAS::setExtraCurlOption(CURLOPT_PROXYPORT, $CFG->proxyport);
|
phpCAS::setExtraCurlOption(CURLOPT_PROXYPORT, $CFG->proxyport);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue