Обновить start-n8n.sh
Some checks failed
Build, Push and Redeploy Docker Image / build-and-push (push) Failing after 4m6s

This commit is contained in:
2026-08-30 14:57:46 +07:00
parent 9ea190538a
commit 249d3c64ba

View File

@@ -4,7 +4,7 @@ SOCKS_HOST=${SOCKS_IP:-192.168.31.240}
# Wait for SOCKS proxy to be ready
echo "Waiting for SOCKS proxy..."
until nc -z "$SOCKS_HOST" 1080; do
until nc -z "$SOCKS_HOST" 4067; do
echo "SOCKS proxy not ready yet, waiting..."
sleep 5
done
@@ -28,7 +28,7 @@ iptables -t nat -A REDSOCKS -d 192.168.0.0/16 -j RETURN
iptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURN
iptables -t nat -A REDSOCKS -d 172.16.0.0/12 -j RETURN
# (по желанию) исключить сам socks-хост точечно:
iptables -t nat -A REDSOCKS -d "$SOCKS_HOST" -p tcp --dport 1080 -j RETURN
iptables -t nat -A REDSOCKS -d "$SOCKS_HOST" -p tcp --dport 4067 -j RETURN
# редирект всего остального tcp
iptables -t nat -A REDSOCKS -p tcp -j REDIRECT --to-ports 12345