From 6c82f37edd3c58028fc073f9618636fcdc138971 Mon Sep 17 00:00:00 2001 From: Luka Gulin Date: Tue, 21 May 2024 12:48:39 +0200 Subject: [PATCH] Add ipfs to cloaking rules --- bind/entrypoint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bind/entrypoint.sh b/bind/entrypoint.sh index a6d3edd..e2949a7 100755 --- a/bind/entrypoint.sh +++ b/bind/entrypoint.sh @@ -1,6 +1,7 @@ #!/bin/sh # Start DNS server in background right away +echo '*.ipfs.ipfs.dappnode ipfs.dappnode' > cloaking-rules.txt /app/dnscrypt-proxy & pid=$! @@ -44,7 +45,9 @@ fi # Only write to cloaking-rules.txt if both domain and internal_ip are available if [ -n "$domain" ] && [ -n "$internal_ip" ]; then - echo "$domain $internal_ip" >cloaking-rules.txt + # rewrite cloaking-rules.txt + echo "$domain $internal_ip" > cloaking-rules.txt + echo '*.ipfs.ipfs.dappnode ipfs.dappnode' >> cloaking-rules.txt kill $pid wait $pid @@ -53,4 +56,4 @@ if [ -n "$domain" ] && [ -n "$internal_ip" ]; then else touch cloaking-rules.txt echo "[ERROR] Missing domain or internal IP. Cloaking rules not updated. Dyndns domain will not be forwarded to internal IP." -fi +fi \ No newline at end of file