From 1e2895073b5b1b43b67f7c8dd53519736ccb2854 Mon Sep 17 00:00:00 2001 From: Jiawen Geng Date: Wed, 12 Nov 2025 18:11:46 -0800 Subject: [PATCH] Make find port default to host * fix https://github.com/sindresorhus/fkill/issues/66 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c0fa2aa..8c85c74 100644 --- a/index.js +++ b/index.js @@ -174,7 +174,7 @@ const kill = (() => { const parseInput = async input => { if (typeof input === 'string' && input[0] === ':') { - return portToPid(Number.parseInt(input.slice(1), 10)); + return portToPid({port: Number.parseInt(input.slice(1), 10), host: '*'}); } return input;