aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_network
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-24 06:44:21 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-24 06:44:21 +0300
commit22788c17d992b711a63067b324dd993aeafc07d0 (patch)
tree90065968be69087afa8cd7d6ae10b9911fec5574 /lib/_ak_network
parente1dfbd2389c47e110d0e979e203d3404fe90e856 (diff)
downloadarching-kaos-tools-22788c17d992b711a63067b324dd993aeafc07d0.tar.gz
arching-kaos-tools-22788c17d992b711a63067b324dd993aeafc07d0.tar.bz2
arching-kaos-tools-22788c17d992b711a63067b324dd993aeafc07d0.zip
Exclude our address from being scanned
Diffstat (limited to 'lib/_ak_network')
-rwxr-xr-xlib/_ak_network2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_ak_network b/lib/_ak_network
index 76af4c0..aa8105e5 100755
--- a/lib/_ak_network
+++ b/lib/_ak_network
@@ -152,11 +152,11 @@ _ak_network_scan_cjdns(){
counter=0
printf '[' > walk.aknet
dumpLinks \
- | grep -v '0000\.0000\.0000\.0001 ' \
| cut -d ' ' -f 2,4 \
| sed 's/ /\n/g' \
| sort \
| uniq \
+ | grep -v `dumpLinks | grep '0000\.0000\.0000\.0001' | cut -d ' ' -f 2` \
| while read -r ip || [ -n "$ip" ]
do
_ak_log_debug "Scanning $(publictoip6 $ip)..."