Skip to content

Commit 3cc1975

Browse files
author
jakub.pawlowski
committed
allow for non-number port (i.e. pipe)
1 parent 29a870e commit 3cc1975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/registry/domain/options-sanitiser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default function optionsSanitiser(input: Input): Config {
6868
options.customHeadersToSkipOnWeakVersion || []
6969
).map(s => s.toLowerCase());
7070

71-
options.port = Number(process.env['PORT'] || options.port);
71+
options.port = options.port || process.env['PORT'];
7272
options.timeout = options.timeout || 1000 * 60 * 2;
7373
options.keepAliveTimeout =
7474
options.keepAliveTimeout || DEFAULT_NODE_KEEPALIVE_MS;

0 commit comments

Comments
 (0)