Skip to content

Commit df21761

Browse files
authored
Merge pull request #1194 from ethical-buddy/feature/connection-latency
Add latency check to connection details
2 parents aadbd1b + e5771e2 commit df21761

13 files changed

Lines changed: 409 additions & 11 deletions

File tree

β€Ž.github/workflows/package.ymlβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ jobs:
8686
- name: Clippy (release mode)
8787
run: cargo clippy --release -- -D warnings
8888

89+
# needed to make latency tests succeed
90+
- name: Enable unprivileged ICMP (Linux)
91+
if: matrix.os == 'ubuntu'
92+
run: sudo sysctl -w net.ipv4.ping_group_range="0 2147483647"
93+
8994
- name: Test (release mode)
9095
if: matrix.os == 'macos' || matrix.os == 'ubuntu' || matrix.os == 'windows' && matrix.arch == 'amd64'
9196
run: |

β€Ž.github/workflows/rust.ymlβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ jobs:
6464
if: matrix.os != 'windows' || github.event_name != 'pull_request'
6565
run: cargo clippy -- -D warnings
6666

67+
# needed to make latency tests succeed
68+
- name: Enable unprivileged ICMP (Linux)
69+
if: matrix.os == 'ubuntu'
70+
run: sudo sysctl -w net.ipv4.ping_group_range="0 2147483647"
71+
6772
- name: test
6873
if: matrix.os != 'windows' || github.event_name != 'pull_request'
6974
run: cargo test --verbose -- --nocapture

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
All Sniffnet releases with the relative changes are documented in this file.
44

55
## [UNRELEASED]
6-
- Support CIDR ranges in imported IP blacklists ([#1181](https://github.com/GyulyVGC/sniffnet/pull/1181))
7-
- Show number of IP addresses and CIDR ranges in imported IP blacklists ([#1183](https://github.com/GyulyVGC/sniffnet/pull/1183))
6+
- Show latency of connections ([#1194](https://github.com/GyulyVGC/sniffnet/pull/1194) β€” fixes [#845](https://github.com/GyulyVGC/sniffnet/issues/845))
87
- Added Hungarian translation πŸ‡­πŸ‡Ί ([#1197](https://github.com/GyulyVGC/sniffnet/pull/1197))
98
- Added Sinhala translation πŸ‡±πŸ‡° ([#1239](https://github.com/GyulyVGC/sniffnet/pull/1239))
9+
- Support CIDR ranges in imported IP blacklists ([#1181](https://github.com/GyulyVGC/sniffnet/pull/1181))
10+
- Show number of IP addresses and CIDR ranges in imported IP blacklists ([#1183](https://github.com/GyulyVGC/sniffnet/pull/1183))
1011
- Updated some of the existing translations to v1.5:
1112
- Ukrainian ([#1039](https://github.com/GyulyVGC/sniffnet/pull/1039))
1213
- German ([#1122](https://github.com/GyulyVGC/sniffnet/pull/1122))

β€ŽCargo.lockβ€Ž

Lines changed: 107 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€ŽCargo.tomlβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ semver = "1.0.28"
6363
serde = { version = "1.0.228", features = ["derive"] }
6464
serde_json = { version = "1.0.150", features = ["preserve_order"] }
6565
splines = "5.0.0"
66+
surge-ping = "0.9.0"
6667
tokio = { version = "1.52.3", features = ["macros", "fs"] }
6768
toml = "1.1.2"
6869

0 commit comments

Comments
Β (0)