correct first empty line

This commit is contained in:
qo-op 2021-01-31 13:20:03 +01:00
parent c5954fa789
commit 5f235ab3d9
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ mkdir -p ~/.zen/ipfs/.${IPFSNODEID}
# echo "/ip4/$EXTERNIP/udp/4001/astro/p2p/${IPFSNODEID}" >> /home/$YOU/.zen/ipfs/.${IPFSNODEID}/tryme.addr
# Doesn't have the right NATed port, so pretty useless...
echo "" > ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr
rm -f ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr
touch ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr
for tryme in $(ipfs id | jq -r .Addresses[]);
do
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])/")