Skip to content

Commit

Permalink
fix kill by port
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyMograbi committed Mar 24, 2021
1 parent 16dcbe2 commit ea5b1f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const exec = require('child_process').execSync
exports.killByPort = function (port) {
var processId = null
try {
processId = exec(`lsof -t -i:${port}`)
processId = exec(`lsof -t -i:${parseInt(port, 10)}`)
} catch (e) {

}
Expand Down

1 comment on commit ea5b1f3

@abergmann
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CVE-2021-23363 was assigned to this commit.

Please sign in to comment.