also add http2 flag to domain-import

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2017-08-24 15:27:47 +02:00
parent bab982a0e6
commit 64ebb0ca38

View File

@@ -99,6 +99,7 @@ class DomainBulkAction
/* 22 */ 'hsts_preload',
/* 23 */ 'ocsp_stapling',
/* 24 */ 'phpenabled',
/* 25 */ 'http2',
/* automatically added */
'adminid',
'customerid',
@@ -212,7 +213,8 @@ class DomainBulkAction
`hsts_sub` = :hsts_sub,
`hsts_preload` = :hsts_preload,
`ocsp_stapling` = :ocsp_stapling,
`phpenabled` = :phpenabled
`phpenabled` = :phpenabled,
`http2` = :http2
");
// prepare insert statement for ip/port <> domain
@@ -371,6 +373,14 @@ class DomainBulkAction
$domain_data['ocsp_stapling'] = 0;
}
if ($domain_data['phpenabled'] != 1) {
$domain_data['phpenabled'] = 0;
}
if ($domain_data['http2'] != 1) {
$domain_data['http2'] = 0;
}
// add to known domains
$this->_knownDomains[] = $domain_data['domain'];