]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14659
authorthepurpleblob <thepurpleblob>
Tue, 6 May 2008 14:51:30 +0000 (14:51 +0000)
committerthepurpleblob <thepurpleblob>
Tue, 6 May 2008 14:51:30 +0000 (14:51 +0000)
Add bypass list for proxy usage.

admin/settings/server.php
lang/en_utf8/admin.php

index ef8c48322d8647aa7d092b59a6e4eccacd78b7f6..472f106e87402b038eb426fb705b6517b5d2e4a7 100644 (file)
@@ -156,6 +156,7 @@ if (defined('CURLPROXY_SOCKS5')) {
 $temp->add(new admin_setting_configselect('proxytype', get_string('proxytype', 'admin'), get_string('configproxytype','admin'), 'HTTP', $options));
 $temp->add(new admin_setting_configtext('proxyuser', get_string('proxyuser', 'admin'), get_string('configproxyuser', 'admin'), ''));
 $temp->add(new admin_setting_configpasswordunmask('proxypassword', get_string('proxypassword', 'admin'), get_string('configproxypassword', 'admin'), ''));
+$temp->add(new admin_setting_configtext('proxybypass', get_string('proxybypass', 'admin'), get_string('configproxybypass', 'admin'), 'localhost, 127.0.0.1'));
 $ADMIN->add('server', $temp);
 
 $ADMIN->add('server', new admin_externalpage('maintenancemode', get_string('sitemaintenancemode', 'admin'), "$CFG->wwwroot/$CFG->admin/maintenance.php"));
index db437f0fc651ab9341f07cbabf77780214bd842f..55232c0c72c52ba6f5177e6687a50943342fac0d 100644 (file)
@@ -176,6 +176,7 @@ $string['configpathtoclam'] = 'Path to clam AV.  Probably something like /usr/bi
 $string['configpathtodu'] = 'Path to du. Probably something like /usr/bin/du. If you enter this, pages that display directory contents will run much faster for directories with a lot of files.';
 $string['configperfdebug'] = 'If you turn this on, performance info will be printed in the footer of the standard theme';
 $string['configprotectusernames'] = 'By default forget_password.php does not display any hints that would allow guessing of usernames or email addresses.';
+$string['configproxybypass'] = 'Comma separated list of (partial) hostnames or IPs that should bypass proxy (e.g., 192.168., .mydomain.com)';
 $string['configproxyhost'] = 'If this <b>server</b> needs to use a proxy computer (eg a firewall) to access the Internet, then provide the proxy hostname here.  Otherwise leave it blank.';
 $string['configproxypassword'] = 'Password needed to access internet through proxy if required, empty if none (PHP cURL extension required).';
 $string['configproxyport'] = 'If this server needs to use a proxy computer, then provide the proxy port here.';
@@ -578,6 +579,7 @@ $string['profilevisiblenone'] = 'Not visible';
 $string['profilevisibleprivate'] = 'Visible to user';
 $string['profilevisible'] = 'Who is this field visible to?';
 $string['protectusernames'] = 'Protect usernames';
+$string['proxybypass'] = 'Proxy bypass hosts';
 $string['proxyhost'] = 'Proxy host';
 $string['proxyport'] = 'Proxy port';
 $string['proxypassword'] = 'Proxy password';