Skip to content

Commit f7bcad2

Browse files
committed
merge main
2 parents 7353a85 + d547378 commit f7bcad2

157 files changed

Lines changed: 8824 additions & 5595 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.all-contributorsrc

Lines changed: 111 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@
188188
"avatar_url": "https://avatars.githubusercontent.com/u/79985743?v=4",
189189
"profile": "http://index45.com",
190190
"contributions": [
191-
"translation"
191+
"translation",
192+
"code"
192193
]
193194
},
194195
{
@@ -584,6 +585,115 @@
584585
"design",
585586
"a11y"
586587
]
588+
},
589+
{
590+
"login": "TyseEX",
591+
"name": "TyseEX",
592+
"avatar_url": "https://avatars.githubusercontent.com/u/102823177?v=4",
593+
"profile": "https://github.com/TyseEX",
594+
"contributions": [
595+
"bug"
596+
]
597+
},
598+
{
599+
"login": "shu-kitamura",
600+
"name": "shu-kitamura",
601+
"avatar_url": "https://avatars.githubusercontent.com/u/171437458?v=4",
602+
"profile": "https://github.com/shu-kitamura",
603+
"contributions": [
604+
"code"
605+
]
606+
},
607+
{
608+
"login": "pcwizz",
609+
"name": "Morgan Hill",
610+
"avatar_url": "https://avatars.githubusercontent.com/u/1645637?v=4",
611+
"profile": "http://pcwizz.net",
612+
"contributions": [
613+
"security"
614+
]
615+
},
616+
{
617+
"login": "PeterDaveHello",
618+
"name": "Peter Dave Hello",
619+
"avatar_url": "https://avatars.githubusercontent.com/u/3691490?v=4",
620+
"profile": "https://www.peterdavehello.org/",
621+
"contributions": [
622+
"translation"
623+
]
624+
},
625+
{
626+
"login": "mhansma96",
627+
"name": "Michel Hansma",
628+
"avatar_url": "https://avatars.githubusercontent.com/u/84068842?v=4",
629+
"profile": "https://github.com/mhansma96",
630+
"contributions": [
631+
"design",
632+
"a11y"
633+
]
634+
},
635+
{
636+
"login": "domcyrus",
637+
"name": "Marco Cadetg",
638+
"avatar_url": "https://avatars.githubusercontent.com/u/884083?v=4",
639+
"profile": "https://github.com/domcyrus",
640+
"contributions": [
641+
"platform"
642+
]
643+
},
644+
{
645+
"login": "nubikripto",
646+
"name": "Nubi",
647+
"avatar_url": "https://avatars.githubusercontent.com/u/35731885?v=4",
648+
"profile": "https://nubikripto.my.id",
649+
"contributions": [
650+
"translation"
651+
]
652+
},
653+
{
654+
"login": "iwan-uschka",
655+
"name": "Christoph Wanja",
656+
"avatar_url": "https://avatars.githubusercontent.com/u/2256579?v=4",
657+
"profile": "https://toto.io",
658+
"contributions": [
659+
"financial"
660+
]
661+
},
662+
{
663+
"login": "aguacero7",
664+
"name": "Aguacero 🌧️",
665+
"avatar_url": "https://avatars.githubusercontent.com/u/72492241?v=4",
666+
"profile": "https://github.com/aguacero7",
667+
"contributions": [
668+
"translation"
669+
]
670+
},
671+
{
672+
"login": "rons4",
673+
"name": "Ron",
674+
"avatar_url": "https://avatars.githubusercontent.com/u/43244104?v=4",
675+
"profile": "https://www.signl4.com",
676+
"contributions": [
677+
"ideas"
678+
]
679+
},
680+
{
681+
"login": "ADS-Fund",
682+
"name": "ADS Fund",
683+
"avatar_url": "https://avatars.githubusercontent.com/u/202042116?v=4",
684+
"profile": "https://ads.fund",
685+
"contributions": [
686+
"financial"
687+
]
688+
},
689+
{
690+
"login": "louis-ym4",
691+
"name": "louis-ym4",
692+
"avatar_url": "https://avatars.githubusercontent.com/u/200361621?v=4",
693+
"profile": "https://github.com/louis-ym4",
694+
"contributions": [
695+
"design"
696+
]
587697
}
588698
],
589699
"contributorsPerLine": 7,

.dockerignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Ignore everything
2+
*
3+
4+
# Explicitly allow files
5+
!src/**/*.rs
6+
!build.rs
7+
!Cargo.toml
8+
!Cargo.lock
9+
!Dockerfile
10+
!services.txt
11+
!resources/countries_flags/**/*.svg
12+
!resources/DB/*.mmdb
13+
!resources/fonts/subset/*.ttf
14+
!resources/logos/raw/icon.png
15+
!resources/packaging/windows/graphics/sniffnet.ico
16+
!resources/sounds/*.mp3

.github/workflows/docker.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Docker
2+
3+
on:
4+
# push:
5+
# tags:
6+
# - 'v[0-9]+.[0-9]+.[0-9]+'
7+
workflow_dispatch:
8+
9+
jobs:
10+
docker:
11+
name: Docker Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Extract version from Cargo.toml
18+
id: cargo-version
19+
run: |
20+
VERSION=v$(grep -m1 "^version" Cargo.toml | cut -d'"' -f2)
21+
echo "VERSION=$VERSION" >> $GITHUB_ENV
22+
echo "version=$VERSION" >> $GITHUB_OUTPUT
23+
24+
- name: Set up QEMU
25+
uses: docker/setup-qemu-action@v3
26+
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
29+
30+
- name: Login to GitHub Container Registry
31+
uses: docker/login-action@v3
32+
with:
33+
registry: ghcr.io
34+
username: GyulyVGC
35+
password: ${{ secrets.GITHUB_TOKEN }}
36+
37+
- name: Build and push
38+
uses: docker/build-push-action@v6
39+
with:
40+
context: .
41+
platforms: linux/amd64
42+
push: true
43+
tags: |
44+
ghcr.io/gyulyvgc/sniffnet:latest
45+
ghcr.io/gyulyvgc/sniffnet:${{ env.VERSION }}
46+
# ghcr.io/gyulyvgc/sniffnet:${{ github.ref_name }}

.github/workflows/package.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,28 @@ jobs:
7272
with:
7373
targets: ${{ matrix.target }}
7474

75+
- name: Check crate
76+
if: matrix.os == 'macos' || matrix.os == 'windows' || matrix.os == 'ubuntu' && matrix.arch == 'amd64'
77+
run: cargo publish --dry-run --target ${{ matrix.target }}
78+
7579
- name: Clippy (release mode)
80+
run: cargo clippy --release -- -D warnings
81+
82+
- name: Test (release mode)
83+
if: matrix.os == 'macos' || matrix.os == 'ubuntu' || matrix.os == 'windows' && matrix.arch == 'amd64'
7684
run: |
77-
cargo clippy --release -- -D warnings
85+
cargo test --release --verbose -- --nocapture &&
7886
cargo clean
7987
8088
- name: Install Cross
8189
if: matrix.os == 'ubuntu'
8290
run: cargo install cross --git https://github.com/cross-rs/cross
8391

84-
- name: Build binary
92+
- name: Build binary (Linux)
8593
if: matrix.os == 'ubuntu'
8694
run: cross build --release --target ${{ matrix.target }}
8795

88-
- name: Build binary
96+
- name: Build binary (macOS/Windows)
8997
if: matrix.os == 'macos' || matrix.os == 'windows'
9098
run: cargo build --release --target ${{ matrix.target }}
9199

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,5 @@ $RECYCLE.BIN/
5555
*.lnk
5656

5757
### Custom... ###
58-
Dockerfile
5958
lcov.info
60-
*.pcap
59+
*.pcap

.well-known/funding-manifest-urls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://sniffnet.net/funding.json

CHANGELOG.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,33 @@
22

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

5-
## [UNRELEASED]
5+
## [1.4.0] - 2025-06-27
6+
- Import PCAP files ([#795](https://github.com/GyulyVGC/sniffnet/pull/795) — fixes [#283](https://github.com/GyulyVGC/sniffnet/issues/283))
7+
- Donut chart reporting overall traffic statistics ([#756](https://github.com/GyulyVGC/sniffnet/pull/756) — fixes [#687](https://github.com/GyulyVGC/sniffnet/issues/687))
8+
- Notifications: more details and other improvements ([#830](https://github.com/GyulyVGC/sniffnet/pull/830) — fixes [#637](https://github.com/GyulyVGC/sniffnet/issues/637))
9+
- Added support for ARP protocol ([#759](https://github.com/GyulyVGC/sniffnet/pull/759) — fixes [#680](https://github.com/GyulyVGC/sniffnet/issues/680))
610
- Identify and tag unassigned/reserved "bogon" IP addresses ([#678](https://github.com/GyulyVGC/sniffnet/pull/678) — fixes [#209](https://github.com/GyulyVGC/sniffnet/issues/209))
711
- Show data agglomerates in _Inspect_ page table ([#684](https://github.com/GyulyVGC/sniffnet/pull/684) — fixes [#601](https://github.com/GyulyVGC/sniffnet/issues/601))
12+
- Added Traditional Chinese (Taiwan) translation 🇹🇼 ([#774](https://github.com/GyulyVGC/sniffnet/pull/774))
13+
- Added Indonesian translation 🇮🇩 ([#611](https://github.com/GyulyVGC/sniffnet/pull/611))
14+
- A Docker image of Sniffnet is now available ([#735](https://github.com/GyulyVGC/sniffnet/pull/735))
815
- Updated some of the existing translations to v1.3:
916
- Portuguese ([#690](https://github.com/GyulyVGC/sniffnet/pull/690))
1017
- Ukrainian ([#692](https://github.com/GyulyVGC/sniffnet/pull/692))
11-
- Added new themes _OLED (Night)_ and _OLED (Day)_ based on palettes optimized for OLED displays and users with visual impairments ([#708](https://github.com/GyulyVGC/sniffnet/pull/708))
18+
- Spanish ([#805](https://github.com/GyulyVGC/sniffnet/pull/805))
19+
- Do not apply new notification thresholds while user is typing them ([#777](https://github.com/GyulyVGC/sniffnet/pull/777) — fixes [#658](https://github.com/GyulyVGC/sniffnet/issues/658))
20+
- Show more information when domain name is short ([#720](https://github.com/GyulyVGC/sniffnet/pull/720) — fixes [#696](https://github.com/GyulyVGC/sniffnet/issues/696))
21+
- Added new themes _A11y (Night)_ and _A11y (Day)_ based on palettes optimized for Accessibility ([#785](https://github.com/GyulyVGC/sniffnet/pull/785) — fixes [#786](https://github.com/GyulyVGC/sniffnet/issues/786))
22+
- Avoid directory traversal when selecting file name for PCAP exports ([#776](https://github.com/GyulyVGC/sniffnet/pull/776) — fixes [#767](https://github.com/GyulyVGC/sniffnet/issues/767))
23+
- Add icon to window title bar ([#719](https://github.com/GyulyVGC/sniffnet/pull/719) — fixes [#715](https://github.com/GyulyVGC/sniffnet/issues/715))
24+
- Update footer buttons and links ([#755](https://github.com/GyulyVGC/sniffnet/pull/755) — fixes [#553](https://github.com/GyulyVGC/sniffnet/issues/553))
25+
- Handle errors to reduce the number of possible crash occurrences ([#784](https://github.com/GyulyVGC/sniffnet/pull/784))
26+
- Use asynchronous channels to update app state from backend ([#806](https://github.com/GyulyVGC/sniffnet/pull/806))
27+
- Fix _crates.io_ package for Windows ([#718](https://github.com/GyulyVGC/sniffnet/pull/718) — fixes [#681](https://github.com/GyulyVGC/sniffnet/issues/681))
28+
- Fix crash when inserting characters longer than one byte in the text input for byte threshold notification setting ([#747](https://github.com/GyulyVGC/sniffnet/pull/747) — fixes [#744](https://github.com/GyulyVGC/sniffnet/issues/744))
29+
- Remove pre-uninstall script on Linux (fixes [#644](https://github.com/GyulyVGC/sniffnet/issues/644))
30+
- Fix typo in Russian translation (fixes [#730](https://github.com/GyulyVGC/sniffnet/issues/730))
31+
- Minor fix to service determination algorithm in case of multicast and broadcast traffic
1232

1333
## [1.3.2] - 2025-01-06
1434
- Dropdown menus for network host filters ([#659](https://github.com/GyulyVGC/sniffnet/pull/659) — fixes [#354](https://github.com/GyulyVGC/sniffnet/issues/354))
@@ -24,7 +44,6 @@ All Sniffnet releases with the relative changes are documented in this file.
2444
- Improve time values on the horizontal axis of the chart ([#641](https://github.com/GyulyVGC/sniffnet/pull/641) — fixes [#619](https://github.com/GyulyVGC/sniffnet/issues/619))
2545
- Migrate to Iced 0.13 ([#618](https://github.com/GyulyVGC/sniffnet/pull/618))
2646
- Added support for Linux `loongarch64` (fixes [#592](https://github.com/GyulyVGC/sniffnet/issues/592))
27-
- Fix uninstall script on Linux (fixes [#644](https://github.com/GyulyVGC/sniffnet/issues/644))
2847
- Fix typos in German translation ([#660](https://github.com/GyulyVGC/sniffnet/pull/660))
2948

3049
## [1.3.1] - 2024-07-22

0 commit comments

Comments
 (0)