1 common.inc | _backdrop_http_use_proxy($host) |
Helper function for determining hosts excluded from needing a proxy.
Return value
TRUE if a proxy should be used for this host.:
Related topics
File
- core/
includes/ common.inc, line 1367 - Common functions that many Backdrop modules will need to reference.
Code
function _backdrop_http_use_proxy($host) {
$proxy_exceptions = settings_get('proxy_exceptions', array('localhost', '127.0.0.1'));
return !in_array(strtolower($host), $proxy_exceptions, TRUE);
}