Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add Moodle support for proxies

  • Loading branch information...
commit d3fcd70b3dd592d8432eb8b63339b4b3f1f7fad6 1 parent 8aed46c
martin authored

Showing 1 changed file with 9 additions and 3 deletions. Show diff stats Hide diff stats

  1. +9 3 lib/ipatlas/plotconf.inc
12 lib/ipatlas/plotconf.inc
@@ -48,8 +48,14 @@ $logging = "yes";
48 48 $cookiepath = "/";
49 49
50 50 # set $use_firewall to "1" if behind a proxy
51   -$use_firewall="";
52   -$firewall_host="localhost";
53   -$firewall_port=3128;
  51 +if ($CFG->proxyhost and $CFG->proxyport) {
  52 + $use_firewall="1";
  53 + $firewall_host=$CFG->proxyhost;
  54 + $firewall_port=$CFG->proxyport;
  55 +} else {
  56 + $use_firewall="";
  57 + $firewall_host="localhost";
  58 + $firewall_port=3128;
  59 +}
54 60
55 61 ?>

0 comments on commit d3fcd70

Please sign in to comment.
Something went wrong with that request. Please try again.