default to port 443 if port is null or empty

This commit is contained in:
jassanw 2025-12-19 18:49:58 -08:00
parent bd19f477f7
commit 3b6beb7f16

View file

@ -166,7 +166,7 @@ function createProxyRequest(hostname, port, req, res, requestHandler) {
/** @type {import("http").RequestOptions} */
const options = {
hostname: hostname,
port: port,
port: port || 443,
path: req.url,
method: req.method,
headers: { ...headers },