From 8a1b90184fd6126c8ce126285f14824ec4fe3408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=B6rther=2C=20R=2E=20=28Roland=29?= Date: Wed, 8 Nov 2023 14:56:04 +0100 Subject: [PATCH] disable dns reverse lookup when using lsof --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 584168b..9c1d0a5 100644 --- a/index.js +++ b/index.js @@ -31,7 +31,7 @@ module.exports = function (port, method = 'tcp') { }) } - return sh('lsof -i -P') + return sh('lsof -i -P -n') .then(res => { const { stdout } = res if (!stdout) return res diff --git a/package.json b/package.json index 3626775..eb3b3bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kill-port", - "version": "2.0.1", + "version": "2.0.2", "description": "Kill process running on given port", "license": "MIT", "main": "index.js",