From d3fcd70b3dd592d8432eb8b63339b4b3f1f7fad6 Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 2 Sep 2002 06:30:57 +0000 Subject: [PATCH] Add Moodle support for proxies --- lib/ipatlas/plotconf.inc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/ipatlas/plotconf.inc b/lib/ipatlas/plotconf.inc index 711507faa4..e545dc8fb7 100644 --- a/lib/ipatlas/plotconf.inc +++ b/lib/ipatlas/plotconf.inc @@ -48,8 +48,14 @@ $logging = "yes"; $cookiepath = "/"; # set $use_firewall to "1" if behind a proxy -$use_firewall=""; -$firewall_host="localhost"; -$firewall_port=3128; +if ($CFG->proxyhost and $CFG->proxyport) { + $use_firewall="1"; + $firewall_host=$CFG->proxyhost; + $firewall_port=$CFG->proxyport; +} else { + $use_firewall=""; + $firewall_host="localhost"; + $firewall_port=3128; +} ?> -- 2.39.5