aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-11-18 12:44:09 +0100
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-11-18 12:44:09 +0100
commit1954c7c7e975104fa651ccded4358826e8b3c8d8 (patch)
tree9e3e3aed304bc083424146374691b635306a9163
parent4c1b3e1f637ce7cb0825ea1e00eb492888777d00 (diff)
add missing prefix to blocking address_get equivalent0.4.2
-rw-r--r--Cargo.toml2
-rw-r--r--src/blocking.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 4a41b1a..c77f089 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rsdsl_netlinklib"
-version = "0.4.1"
+version = "0.4.2"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
diff --git a/src/blocking.rs b/src/blocking.rs
index 2ac66e9..5e5c1f9 100644
--- a/src/blocking.rs
+++ b/src/blocking.rs
@@ -54,7 +54,7 @@ pub mod addr {
blockify!(address_add, link: String, addr: IpAddr, prefix_len: u8);
blockify!(address_add_link_local, link: String, addr: IpAddr, prefix_len: u8);
- pub fn get(&self, link: String) -> crate::Result<Vec<IpAddr>> {
+ pub fn address_get(&self, link: String) -> crate::Result<Vec<IpAddr>> {
tokio::runtime::Runtime::new()?
.block_on(async { self.0.address_get(link).await?.try_collect().await })
}