Skip to content

Commit ecb20f6

Browse files
authored
Merge pull request #564 from GyulyVGC/v1.3.1
v1.3.1
2 parents b1af2be + b1abe68 commit ecb20f6

File tree

9 files changed

+56
-40
lines changed

9 files changed

+56
-40
lines changed

CHANGELOG.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
All Sniffnet releases with the relative changes are documented in this file.
44

5-
## [UNRELEASED]
5+
## [1.3.1] - 2024-07-22
66
- Thumbnail mode improvements ([#512](https://github.com/GyulyVGC/sniffnet/pull/512))
77
- Support IPinfo ASN and Country databases ([#558](https://github.com/GyulyVGC/sniffnet/pull/558) — fixes [#533](https://github.com/GyulyVGC/sniffnet/issues/533))
88
- Added keyboard shortcuts to change zoom level (fixes [#554](https://github.com/GyulyVGC/sniffnet/issues/554))
99
- Increased the range of selectable zoom values (fixes [#542](https://github.com/GyulyVGC/sniffnet/issues/542))
1010
- Updated some of the existing translations to v1.3:
11-
- French - [#494](https://github.com/GyulyVGC/sniffnet/pull/494)
12-
- German - [#495](https://github.com/GyulyVGC/sniffnet/pull/495)
13-
- Russian - [#496](https://github.com/GyulyVGC/sniffnet/pull/496)
14-
- Polish - [#498](https://github.com/GyulyVGC/sniffnet/pull/498)
15-
- Romanian - [#499](https://github.com/GyulyVGC/sniffnet/pull/499)
16-
- Japanese - [#504](https://github.com/GyulyVGC/sniffnet/pull/504)
17-
- Uzbek - [#510](https://github.com/GyulyVGC/sniffnet/pull/510)
18-
- Swedish - [#522](https://github.com/GyulyVGC/sniffnet/pull/522)
11+
- French ([#494](https://github.com/GyulyVGC/sniffnet/pull/494))
12+
- German ([#495](https://github.com/GyulyVGC/sniffnet/pull/495))
13+
- Russian ([#496](https://github.com/GyulyVGC/sniffnet/pull/496))
14+
- Polish ([#498](https://github.com/GyulyVGC/sniffnet/pull/498))
15+
- Romanian ([#499](https://github.com/GyulyVGC/sniffnet/pull/499))
16+
- Japanese ([#504](https://github.com/GyulyVGC/sniffnet/pull/504))
17+
- Uzbek ([#510](https://github.com/GyulyVGC/sniffnet/pull/510))
18+
- Swedish ([#522](https://github.com/GyulyVGC/sniffnet/pull/522))
1919
- Reduced `String` allocations in translation code ([#524](https://github.com/GyulyVGC/sniffnet/pull/524))
2020
- Fixed impossibility to exit thumbnail mode in some Linux distributions (fixes [#505](https://github.com/GyulyVGC/sniffnet/pull/505))
2121

@@ -81,16 +81,16 @@ All Sniffnet releases with the relative changes are documented in this file.
8181
- Added button to clear all the current search filters quickly in inspect page
8282
- Added Swedish translation 🇸🇪 ([#213](https://github.com/GyulyVGC/sniffnet/pull/213))
8383
- Updated most of the existing translations to v1.2:
84-
- German - [#191](https://github.com/GyulyVGC/sniffnet/pull/191)
85-
- Spanish - [#203](https://github.com/GyulyVGC/sniffnet/pull/203)
86-
- Persian - [#193](https://github.com/GyulyVGC/sniffnet/pull/193)
87-
- Korean - [#205](https://github.com/GyulyVGC/sniffnet/pull/205)
88-
- Polish - [#244](https://github.com/GyulyVGC/sniffnet/pull/244)
89-
- Romanian - [#241](https://github.com/GyulyVGC/sniffnet/pull/241)
90-
- Russian - [#187](https://github.com/GyulyVGC/sniffnet/pull/187)
91-
- Turkish - [#192](https://github.com/GyulyVGC/sniffnet/pull/192)
92-
- Ukrainian - [#216](https://github.com/GyulyVGC/sniffnet/pull/216)
93-
- Chinese - [#214](https://github.com/GyulyVGC/sniffnet/pull/214)
84+
- German ([#191](https://github.com/GyulyVGC/sniffnet/pull/191))
85+
- Spanish ([#203](https://github.com/GyulyVGC/sniffnet/pull/203))
86+
- Persian ([#193](https://github.com/GyulyVGC/sniffnet/pull/193))
87+
- Korean ([#205](https://github.com/GyulyVGC/sniffnet/pull/205))
88+
- Polish ([#244](https://github.com/GyulyVGC/sniffnet/pull/244))
89+
- Romanian ([#241](https://github.com/GyulyVGC/sniffnet/pull/241))
90+
- Russian ([#187](https://github.com/GyulyVGC/sniffnet/pull/187))
91+
- Turkish ([#192](https://github.com/GyulyVGC/sniffnet/pull/192))
92+
- Ukrainian ([#216](https://github.com/GyulyVGC/sniffnet/pull/216))
93+
- Chinese ([#214](https://github.com/GyulyVGC/sniffnet/pull/214))
9494
- Renamed "Administrative entity" to "Autonomous System name" to avoid confusion
9595
- Improved filter columns relative width to avoid the "Application protocol" label being cut when displayed in Swedish
9696
- Footer URLs have been updated to include links to Sniffnet's official website and GitHub Sponsor page

Cargo.lock

Lines changed: 11 additions & 11 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sniffnet"
3-
version = "1.3.0"
3+
version = "1.3.1"
44
authors = ["Giuliano Bellini <[email protected]>"]
55
edition = "2021"
66
description = "Application to comfortably monitor your network traffic"

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn build_services_phf() {
5252
services_map.entry(key, &val);
5353
num_entries += 1;
5454
}
55-
assert_eq!(num_entries, 12066);
55+
assert_eq!(num_entries, 12078);
5656

5757
writeln!(
5858
&mut output,
@@ -189,6 +189,7 @@ pub static SAFE_WORDS_FOR_SERVICE_NAME: Lazy<Trie> = Lazy::new(|| {
189189
"dhanalakshmi",
190190
"3gpp-w1ap",
191191
"pmsm-webrctl",
192+
"bif-p2p",
192193
] {
193194
safe_words.set(word, Type::SAFE);
194195
}

services.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,6 +1384,8 @@ apex-mesh 912/tcp
13841384
apex-mesh 912/udp
13851385
apex-edge 913/tcp
13861386
apex-edge 913/udp
1387+
rift-lies 914/tcp
1388+
rift-ties 915/tcp
13871389
oftep-rpc 950/tcp
13881390
rndc 953/tcp
13891391
securenetpro-sensor 975/tcp
@@ -4093,6 +4095,7 @@ service-ctrl 2367/tcp
40934095
service-ctrl 2367/udp
40944096
opentable 2368/tcp
40954097
opentable 2368/udp
4098+
bif-p2p 2369/tcp
40964099
l3-hbmon 2370/tcp
40974100
l3-hbmon 2370/udp
40984101
worldwire 2371/tcp
@@ -8941,6 +8944,7 @@ sdlog 5520/tcp
89418944
sdserv 5530/tcp
89428945
sdreport 5540/tcp
89438946
sdxauthd 5540/udp
8947+
qftest-licserve 5543/tcp
89448948
sdadmind 5550/tcp
89458949
sgi-eventmond 5553/tcp
89468950
sgi-eventmond 5553/udp
@@ -10358,6 +10362,7 @@ senomix07 8058/udp
1035810362
senomix08 8059/tcp
1035910363
senomix08 8059/udp
1036010364
aero 8060/tcp
10365+
nikatron-dev 8061/tcp
1036110366
toad-bi-appsrvr 8066/tcp
1036210367
infi-async 8067/tcp
1036310368
ucs-isc 8070/tcp
@@ -10516,13 +10521,15 @@ espeech-rtp 8417/tcp
1051610521
espeech-rtp 8417/udp
1051710522
aritts 8423/tcp
1051810523
pgbackrest 8432/tcp
10524+
aws-as2 8433/tcp
1051910525
cybro-a-bus 8442/tcp
1052010526
cybro-a-bus 8442/udp
1052110527
https-alt 8443/tcp
1052210528
pcsync-https 8443/udp
1052310529
pcsync-http 8444/tcp
1052410530
pcsync-http 8444/udp
1052510531
copy 8445/tcp
10532+
matrix-fed 8448/tcp
1052610533
npmp 8450/tcp
1052710534
npmp 8450/udp
1052810535
nexentamv 8457/tcp
@@ -10562,6 +10569,7 @@ canon-bjnp4 8614/udp
1056210569
imink 8615/tcp
1056310570
monetra 8665/tcp
1056410571
monetra-admin 8666/tcp
10572+
spartan 8668/tcp
1056510573
msi-cps-rm 8675/tcp
1056610574
sun-as-jmxrmi 8686/tcp
1056710575
sun-as-jmxrmi 8686/udp
@@ -11209,6 +11217,7 @@ warehouse 12322/udp
1120911217
netbus 12345/tcp
1121011218
italk 12345/udp
1121111219
netbus 12346/tcp
11220+
carb-repl-ctrl 12546/tcp
1121211221
tsaf 12753/tcp
1121311222
tsaf 12753/udp
1121411223
netperf 12865/tcp
@@ -11267,6 +11276,7 @@ dsmcc-download 13821/udp
1126711276
dsmcc-ccp 13822/tcp
1126811277
dsmcc-ccp 13822/udp
1126911278
bmdss 13823/tcp
11279+
a-trust-rpc 13832/tcp
1127011280
ucontrol 13894/tcp
1127111281
dta-systems 13929/tcp
1127211282
dta-systems 13929/udp
@@ -11666,6 +11676,7 @@ icl-twobase9 25008/tcp
1166611676
icl-twobase9 25008/udp
1166711677
icl-twobase10 25009/tcp
1166811678
icl-twobase10 25009/udp
11679+
db2c-tls 25100/tcp
1166911680
rna 25471/tcp
1167011681
minecraft 25565/tcp
1167111682
sauterdongle 25576/tcp
@@ -11962,6 +11973,7 @@ candrp 42509/tcp
1196211973
candrp 42509/udp
1196311974
caerpc 42510/tcp
1196411975
caerpc 42510/udp
11976+
curiosity 42999/tcp
1196511977
recvr-rc 43000/tcp
1196611978
reachout 43188/tcp
1196711979
reachout 43188/udp

src/mmdb/types/mmdb_asn_entry.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
use crate::networking::types::asn::Asn;
21
use serde::Deserialize;
32

3+
use crate::networking::types::asn::Asn;
4+
45
#[derive(Deserialize)]
56
pub struct MmdbAsnEntry<'a> {
67
#[serde(alias = "autonomous_system_number", alias = "asn")]
@@ -29,7 +30,7 @@ impl MmdbAsnCode<'_> {
2930
fn get_code(&self) -> String {
3031
match self {
3132
Self::Int(Some(code)) => code.to_string(),
32-
Self::Str(Some(code)) => code.to_string(),
33+
Self::Str(Some(code)) => (*code).to_string(),
3334
_ => String::new(),
3435
}
3536
}

src/mmdb/types/mmdb_country_entry.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
use crate::countries::types::country::Country;
21
use serde::Deserialize;
32

3+
use crate::countries::types::country::Country;
4+
45
#[derive(Deserialize)]
56
#[serde(transparent)]
67
pub struct MmdbCountryEntry<'a> {
@@ -28,8 +29,8 @@ impl MmdbCountryEntryInner<'_> {
2829
match self {
2930
Self::Standard(StandardCountryEntry {
3031
country: Some(StandardCountryEntryInner { iso_code: Some(c) }),
31-
}) => Country::from_str(c),
32-
Self::Ipinfo(IpinfoCountryEntry { country: Some(c) }) => Country::from_str(c),
32+
})
33+
| Self::Ipinfo(IpinfoCountryEntry { country: Some(c) }) => Country::from_str(c),
3334
_ => Country::ZZ,
3435
}
3536
}

src/mmdb/types/mmdb_reader.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
use std::net::IpAddr;
2+
13
use maxminddb::{MaxMindDBError, Reader};
24
use serde::Deserialize;
3-
use std::net::IpAddr;
45

56
pub enum MmdbReader {
67
Default(Reader<&'static [u8]>),

src/networking/manage_packets.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ mod tests {
13031303

13041304
#[test]
13051305
fn test_all_services_map_key_and_values_are_valid() {
1306-
assert_eq!(SERVICES.len(), 12066);
1306+
assert_eq!(SERVICES.len(), 12078);
13071307
let mut distinct_services = HashSet::new();
13081308
for (sq, s) in &SERVICES {
13091309
// only tcp or udp
@@ -1324,7 +1324,7 @@ mod tests {
13241324
// just to count and verify number of distinct services
13251325
distinct_services.insert(name.to_string());
13261326
}
1327-
assert_eq!(distinct_services.len(), 6438);
1327+
assert_eq!(distinct_services.len(), 6450);
13281328
}
13291329

13301330
#[test]

0 commit comments

Comments
 (0)