Remove http.servername as got doesn't support

This commit is contained in:
Ben Hardill
2025-04-17 15:32:31 +01:00
parent f3b47c5659
commit 0b271f1185

View File

@@ -592,6 +592,10 @@ in your Node-RED user directory (${RED.settings.userDir}).
opts.https.alpnProtocols = opts.https.ALPNProtocols
delete opts.https.ALPNProtocols
}
// The got library doesn't support servername at this time
if (opts.https.servername) {
delete opts.https.servername
}
} else {
if (msg.hasOwnProperty('rejectUnauthorized')) {
opts.https = { rejectUnauthorized: msg.rejectUnauthorized };