[Web] Fixes TLSA for self-signed certs, closes #997

master
andre.peters 2018-02-03 19:14:14 +01:00
parent 3feabe00a2
commit 520bc6950f
1 changed files with 15 additions and 15 deletions

View File

@ -13,22 +13,22 @@ $domains = mailbox('get', 'domains');
foreach(mailbox('get', 'domains') as $dn) { foreach(mailbox('get', 'domains') as $dn) {
$domains = array_merge($domains, mailbox('get', 'alias_domains', $dn)); $domains = array_merge($domains, mailbox('get', 'alias_domains', $dn));
} }
$domain = $_GET['domain'];
// if (isset($_GET['domain'])) { if (isset($_GET['domain'])) {
// if (is_valid_domain_name($_GET['domain'])) { if (is_valid_domain_name($_GET['domain'])) {
// if (in_array($_GET['domain'], $domains)) { if (in_array($_GET['domain'], $domains)) {
// } $domain = $_GET['domain'];
// else { }
// echo "No such domain in context"; else {
// die(); echo "No such domain in context";
// } die();
// } }
// else { }
// echo "Invalid domain name"; else {
// die(); echo "Invalid domain name";
// } die();
// } }
}
$ch = curl_init('http://ip4.mailcow.email'); $ch = curl_init('http://ip4.mailcow.email');
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);