From c3e1e43b6d8546b86c559dd3ae1a890157e8de7a Mon Sep 17 00:00:00 2001 From: qo-op Date: Sat, 15 May 2021 21:06:17 +0200 Subject: [PATCH] up --- zen/tools/add_externIP_to_ipfstryme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zen/tools/add_externIP_to_ipfstryme.sh b/zen/tools/add_externIP_to_ipfstryme.sh index 4d1d393..0b0a050 100755 --- a/zen/tools/add_externIP_to_ipfstryme.sh +++ b/zen/tools/add_externIP_to_ipfstryme.sh @@ -41,7 +41,7 @@ done for tryme in $(ipfs swarm peers); do ipfsnodeid=$(echo $tryme | rev | cut -d '/' -f 1 | rev) - isMySWARM=$(cat ~/.zen/astrXbian/A_my_swarm.txt | grep $ipfsnodeid ) + isMySWARM=$(cat ~/.zen/A_my_swarm.txt | grep $ipfsnodeid ) isLAN=$(echo $tryme | cut -f3 -d '/' | grep -E "(^127\.)|(^192\.168\.)|(^fd42\:)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^::1$)|(^[fF][cCdD])/") [[ ! $isLAN ]] && [[ $isMySWARM ]] && echo "$tryme" >> ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr && echo "$tryme" || ipfs swarm disconnect /ipfs/$ipfsnodeid done