mirror of
https://github.com/anthropics/claude-code.git
synced 2026-04-24 22:55:16 +00:00
fix: improve DNS resolution in firewall script to filter CNAME records
This commit is contained in:
@@ -71,7 +71,7 @@ for domain in \
|
|||||||
"statsig.anthropic.com" \
|
"statsig.anthropic.com" \
|
||||||
"statsig.com"; do
|
"statsig.com"; do
|
||||||
echo "Resolving $domain..."
|
echo "Resolving $domain..."
|
||||||
ips=$(dig +short A "$domain")
|
ips=$(dig +noall +answer A "$domain" | awk '$4 == "A" {print $5}')
|
||||||
if [ -z "$ips" ]; then
|
if [ -z "$ips" ]; then
|
||||||
echo "ERROR: Failed to resolve $domain"
|
echo "ERROR: Failed to resolve $domain"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user