From d97c9e06343ad0a0991ab1a6eecb454320dfa1e8 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Tue, 12 Dec 2017 10:58:20 +0100
Subject: [PATCH] Support update-check behind a proxy

---
 modules/core/www/frontpage_config.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/core/www/frontpage_config.php b/modules/core/www/frontpage_config.php
index 776b9e074..94dea21a2 100644
--- a/modules/core/www/frontpage_config.php
+++ b/modules/core/www/frontpage_config.php
@@ -74,6 +74,8 @@ if ($config->getBoolean('admin.checkforupdates', true) && $current !== 'master')
 		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 		curl_setopt($ch, CURLOPT_USERAGENT, 'SimpleSAMLphp');
 		curl_setopt($ch, CURLOPT_TIMEOUT, 2);
+        curl_setopt($ch, CURLOPT_PROXY, $config->getString('proxy', null));
+        curl_setopt($ch, CURLOPT_PROXYUSERPWD, $config->getstring('proxy.auth', null));
 		$response = curl_exec($ch);
 
 		if (curl_getinfo($ch, CURLINFO_HTTP_CODE) === 200) {
-- 
GitLab