Update comment

This commit is contained in:
Sefinek 2024-12-10 13:24:53 +01:00
parent f3e1d2f50c
commit 4469aa0816
3 changed files with 3 additions and 3 deletions

View file

@ -63,7 +63,7 @@ journalctl -u abuseipdb-ufw.service -f
### 📄 Example report ### 📄 Example report
``` ```
Blocked by UFW (TCP on port 80). Blocked by UFW (TCP on 80)
Source port: 28586 Source port: 28586
TTL: 116 TTL: 116
Packet length: 48 Packet length: 48

View file

@ -63,7 +63,7 @@ journalctl -u abuseipdb-ufw.service -f
### 📄 Przykładowe zgłoszenie ### 📄 Przykładowe zgłoszenie
``` ```
Blocked by UFW (TCP on port 80). Blocked by UFW (TCP on 80)
Source port: 28586 Source port: 28586
TTL: 116 TTL: 116
Packet length: 48 Packet length: 48

View file

@ -74,7 +74,7 @@ is_local_ip() {
report_to_abuseipdb() { report_to_abuseipdb() {
local ip="$1" categories="$2" proto="$3" spt="$4" dpt="$5" ttl="$6" len="$7" tos="$8" timestamp="$9" local ip="$1" categories="$2" proto="$3" spt="$4" dpt="$5" ttl="$6" len="$7" tos="$8" timestamp="$9"
local comment="Blocked by UFW ($proto on port $dpt). local comment="Blocked by UFW ($proto on $dpt)
Source port: $spt" Source port: $spt"
[[ -n "$ttl" ]] && comment+=" [[ -n "$ttl" ]] && comment+="