spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

fix: Handle missing Docker DNS rules gracefully in firewall scriptBrowse files
Add error handling for grep when no Docker DNS rules exist, preventing
script failure on default Docker networks while still preserving DNS
functionality on custom networks.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Kurt Carpenter authored on Jul 30, 2025 parent 78e0785 · commit dde41f6225c5
1 changed file+1 -1compared with 78e0785
M.devcontainer/init-firewall.sh
@@ -3,7 +3,7 @@
33 IFS=$'\n\t' # Stricter word splitting
44
55 # 1. Extract Docker DNS info BEFORE any flushing
6-DOCKER_DNS_RULES=$(iptables-save -t nat | grep "127\.0\.0\.11")
6+DOCKER_DNS_RULES=$(iptables-save -t nat | grep "127\.0\.0\.11" || true)
77
88 # Flush existing rules and delete existing ipsets
99 iptables -F