aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/_ak_network1
-rwxr-xr-xlib/_ak_network_incoming9
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/_ak_network b/lib/_ak_network
index 636cf5e..0c0fc6f 100755
--- a/lib/_ak_network
+++ b/lib/_ak_network
@@ -51,6 +51,7 @@ function _ak_network_show_peers(){
cjdns) _ak_network_cjdns_show_peers; exit;;
ipfs) _ak_network_ipfs_show_peers; exit;;
yggdrasil) _ak_network_yggdrasil_show_peers; exit;;
+ incoming) _ak_network_incoming_show_peers; exit;;
* ) _ak_log_error "Unknown network $1";exit 1;;
esac
else
diff --git a/lib/_ak_network_incoming b/lib/_ak_network_incoming
index e733a2e..439dfa2 100755
--- a/lib/_ak_network_incoming
+++ b/lib/_ak_network_incoming
@@ -28,6 +28,15 @@ function _ak_network_incoming_tidy(){
exit 224
}
+function _ak_network_incoming_show_peers(){
+ if [ -f $AK_ZPEERSFILE.incoming ]
+ then
+ cat $AK_ZPEERSFILE.incoming | jq
+ else
+ _ak_log_debug "No incoming peers found"
+ fi
+}
+
function _ak_network_incoming_scan(){
if [ -f "${AK_ZPEERSINCOMING}" ]
then