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