From 7eaf42746b257c665811aa4cd28e8e2cd9857894 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Dec 2023 03:30:13 +0000 Subject: [PATCH 1/4] build(deps): bump reqwest from 0.11.22 to 0.11.23 Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.11.22 to 0.11.23. - [Release notes](https://github.com/seanmonstar/reqwest/releases) - [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md) - [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.22...v0.11.23) --- updated-dependencies: - dependency-name: reqwest dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ffd0b68b..17fe1fdc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2692,9 +2692,9 @@ checksum = "216080ab382b992234dda86873c18d4c48358f5cfcb70fd693d7f6f2131b628b" [[package]] name = "reqwest" -version = "0.11.22" +version = "0.11.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "046cd98826c46c2ac8ddecae268eb5c2e58628688a5fc7a2643704a73faba95b" +checksum = "37b1ae8d9ac08420c66222fb9096fc5de435c3c48542bc5336c51892cffafb41" dependencies = [ "base64", "bytes", diff --git a/Cargo.toml b/Cargo.toml index e5888e9d..46a0faba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,7 +47,7 @@ dns-lookup = "2.0.4" toml = "0.8.8" [target.'cfg(not(target_arch = "powerpc64"))'.dependencies] -reqwest = { version = "0.11.22", default-features = false, features = ["json", "blocking", "rustls-tls"] } +reqwest = { version = "0.11.23", default-features = false, features = ["json", "blocking", "rustls-tls"] } [target.'cfg(target_arch = "powerpc64")'.dependencies] reqwest = { version = "0.11.22", features = ["json", "blocking"] } From a9bbe0419af0353917b66f3505de73504bfc1b2c Mon Sep 17 00:00:00 2001 From: Giuliano Bellini <100347457+GyulyVGC@users.noreply.github.com> Date: Tue, 19 Dec 2023 09:31:49 +0100 Subject: [PATCH 2/4] update reqwest for target powerpc64 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 46a0faba..1a57666c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,7 +50,7 @@ toml = "0.8.8" reqwest = { version = "0.11.23", default-features = false, features = ["json", "blocking", "rustls-tls"] } [target.'cfg(target_arch = "powerpc64")'.dependencies] -reqwest = { version = "0.11.22", features = ["json", "blocking"] } +reqwest = { version = "0.11.23", features = ["json", "blocking"] } #─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── From dddc22e806cf828adf0542dfc13e3de7a39f3c6c Mon Sep 17 00:00:00 2001 From: Giuliano Bellini s294739 Date: Tue, 19 Dec 2023 10:04:47 +0100 Subject: [PATCH 3/4] update manifest file --- Cargo.toml | 8 +++++++- src/gui/styles/button.rs | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1a57666c..4165aed1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "sniffnet" version = "1.2.2" -authors = [ "Giuliano Bellini" ] +authors = [ "Giuliano Bellini " ] edition = "2021" description = "Application to comfortably monitor your network traffic" readme = "README.md" +homepage = "https://sniffnet.net" repository = "https://github.com/GyulyVGC/sniffnet" license = "MIT OR Apache-2.0" keywords = [ "filter", "network", "packet", "sniffer", "gui" ] @@ -65,6 +66,11 @@ winres = "0.1.12" #═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ +[badges] +maintenance = { status = "actively-developed" } + +#═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ + [package.metadata.cross.target.x86_64-unknown-linux-gnu] pre-build = [ "dpkg --add-architecture amd64", diff --git a/src/gui/styles/button.rs b/src/gui/styles/button.rs index cd9c0b64..193a258e 100644 --- a/src/gui/styles/button.rs +++ b/src/gui/styles/button.rs @@ -171,7 +171,7 @@ impl button::StyleSheet for StyleType { shadow_offset: Vector::new(0.0, 0.0), text_color: colors.text_headers, border_color: Color { - a: get_alpha_round_containers(*self), + a: get_alpha_round_borders(*self), ..colors.secondary }, } From 0af8fefef20a1a791c9068e239ec215c6c47fcb0 Mon Sep 17 00:00:00 2001 From: Giuliano Bellini s294739 Date: Tue, 19 Dec 2023 10:19:06 +0100 Subject: [PATCH 4/4] update User-agent header of request to check if newer release is available --- src/secondary_threads/check_updates.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/secondary_threads/check_updates.rs b/src/secondary_threads/check_updates.rs index def72ca1..96ccf033 100644 --- a/src/secondary_threads/check_updates.rs +++ b/src/secondary_threads/check_updates.rs @@ -22,8 +22,8 @@ pub fn set_newer_release_status(newer_release_available: &Arc fn is_newer_release_available(max_retries: u8, seconds_between_retries: u8) -> Option { let client = reqwest::blocking::Client::new(); let response = client - .get("https://api.github.com/repos/GyulyVGC/Sniffnet/releases/latest") - .header("User-agent", "GyulyVGC") + .get("https://api.github.com/repos/GyulyVGC/sniffnet/releases/latest") + .header("User-agent", format!("sniffnet-{}", APP_VERSION)) .header("Accept", "application/vnd.github+json") .header("X-GitHub-Api-Version", "2022-11-28") .send(); @@ -34,8 +34,8 @@ fn is_newer_release_available(max_retries: u8, seconds_between_retries: u8) -> O #[cfg(test)] if result_json.is_err() { let response2 = client - .get("https://api.github.com/repos/GyulyVGC/Sniffnet/releases/latest") - .header("User-agent", "GyulyVGC") + .get("https://api.github.com/repos/GyulyVGC/sniffnet/releases/latest") + .header("User-agent", format!("sniffnet-{}", APP_VERSION)) .header("Accept", "application/vnd.github+json") .header("X-GitHub-Api-Version", "2022-11-28") .send();