Skip to content

Commit

Permalink
Merge pull request #17 from jkfran/release0.8.0
Browse files Browse the repository at this point in the history
Release v0.8.0
  • Loading branch information
jkfran authored May 5, 2023
2 parents aa57df8 + b03047e commit aecbacc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "killport"
version = "0.7.0"
version = "0.8.0"
authors = ["Francisco Jimenez Cabrera <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ We are committed to providing security updates for the following versions of kil

| Version | Supported |
| ------- | ------------------ |
| 0.7.x | :white_check_mark: |
| < 0.7.0 | :x: |
| 0.8.x | :white_check_mark: |
| < 0.8.0 | :x: |

Older versions of killport may still work but are not actively maintained or supported. We encourage users to upgrade to the latest version to receive security updates and feature improvements.

Expand All @@ -19,7 +19,7 @@ Please follow these steps to report a vulnerability:

1. Go to the [GitHub Security tab](https://github.com/jkfran/killport/security/advisories) in the killport repository.
2. Click on "New draft advisory."
3. Provide a descriptive title for the advisory, such as "Security Vulnerability in killport v0.7.0."
3. Provide a descriptive title for the advisory, such as "Security Vulnerability in killport v0.8.0."
4. Provide a detailed description of the vulnerability, including steps to reproduce the issue, affected components, and potential impact.
5. If you have a suggested patch or workaround, please include it in the report. However, this is not required.
6. Submit the draft advisory.
Expand Down
2 changes: 1 addition & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: killport
version: "0.7.0"
version: "0.8.0"
summary: A CLI tool to kill processes using specified ports
description: |
Killport is a command-line utility to find and kill processes listening on specified ports.
Expand Down
11 changes: 8 additions & 3 deletions src/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,17 @@ fn find_target_inodes(port: u16) -> Vec<u64> {
}
}

fn add_matching_inodes<T: NetEntry>(target_inodes: &mut Vec<u64>, net_entries: procfs::ProcResult<Vec<T>>, port: u16) {
fn add_matching_inodes<T: NetEntry>(
target_inodes: &mut Vec<u64>,
net_entries: procfs::ProcResult<Vec<T>>,
port: u16,
) {
if let Ok(net_entries) = net_entries {
target_inodes.extend(
net_entries.into_iter()
net_entries
.into_iter()
.filter(move |net_entry| net_entry.local_address().port() == port)
.map(|net_entry| net_entry.inode())
.map(|net_entry| net_entry.inode()),
);
}
}
Expand Down

0 comments on commit aecbacc

Please sign in to comment.