mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
default to port 443 if port is null or empty
This commit is contained in:
parent
bd19f477f7
commit
3b6beb7f16
1 changed files with 1 additions and 1 deletions
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue