DEBUG
This commit is contained in:
parent
d4dadbbf10
commit
b575ff7518
|
@ -70,6 +70,7 @@ ipfs p2p ls
|
|||
|
||||
## CONNECT WITH COMMAND
|
||||
## ipfs cat /ipns/$IPFSNODEID/.$IPFSNODEID/x_ssh-$zuid.sh | bash
|
||||
rm ~/.zen/ipfs/.$IPFSNODEID/x_ssh-$zuid.sh ## DEBUG
|
||||
if [[ ! -f ~/.zen/ipfs/.$IPFSNODEID/x_ssh-$zuid.sh ]]; then
|
||||
echo "PORT=$1; [[ ! $PORT ]] && echo 'PORT LOCAL pour ssh-$zuid ?'; read PORT"
|
||||
echo "[[ ! $(ipfs p2p ls | grep '/x/ssh-$zuid') ]] && ipfs --timeout=5s ping -n 1 /p2p/$IPFSNODEID && ipfs p2p forward /x/ssh-$zuid /ip4/127.0.0.1/tcp/$PORT/p2p/$IPFSNODEID" > ~/.zen/ipfs/.$IPFSNODEID/x_ssh-$zuid.sh
|
||||
|
|
Loading…
Reference in New Issue