aboutsummaryrefslogtreecommitdiff
path: root/src/js/node/http.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/node/http.ts')
-rw-r--r--src/js/node/http.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/node/http.ts b/src/js/node/http.ts
index 8d457bb85..70ee6cead 100644
--- a/src/js/node/http.ts
+++ b/src/js/node/http.ts
@@ -449,7 +449,7 @@ class Server extends EventEmitter {
listen(port, host, backlog, onListen) {
const server = this;
let socketPath;
- if (typeof port == "string") {
+ if (typeof port == "string" && !Number.isSafeInteger(Number(port))) {
socketPath = port;
}
if (typeof host === "function") {