mirror of
https://github.com/streamwall/streamwall.git
synced 2026-04-03 20:32:08 -04:00
Only create certificate if certDir set
This commit is contained in:
@@ -142,7 +142,7 @@ export default async function initWebServer({
|
|||||||
})
|
})
|
||||||
|
|
||||||
let server
|
let server
|
||||||
if (protocol === 'https:') {
|
if (protocol === 'https:' && certDir) {
|
||||||
const { key, cert } = await simpleCert({
|
const { key, cert } = await simpleCert({
|
||||||
dataDir: certDir,
|
dataDir: certDir,
|
||||||
commonName: hostname,
|
commonName: hostname,
|
||||||
|
|||||||
Reference in New Issue
Block a user