Skip to content

Commit fa3c74c

Browse files
committed
fix: #1428 init_firewall.sh deduplicate ips entries
1 parent 688100f commit fa3c74c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codex-cli/scripts/init_firewall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ipset create allowed-domains hash:net
4646
# Resolve and add other allowed domains
4747
for domain in "${ALLOWED_DOMAINS[@]}"; do
4848
echo "Resolving $domain..."
49-
ips=$(dig +short A "$domain")
49+
ips=$(dig +short A "$domain" | sort -u)
5050
if [ -z "$ips" ]; then
5151
echo "ERROR: Failed to resolve $domain"
5252
exit 1

0 commit comments

Comments
 (0)