Skip to content

Commit 939076d

Browse files
craig[bot]yuzefovich
andcommitted
Merge #160096
160096: scripts/gceworker: use dig for update-firewall r=yuzefovich a=yuzefovich Claude suggests that using dig is more reliable since it uses DNS rather than HTTPS, avoiding the TLS handshake issues. Epic: None Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]>
2 parents 82a0890 + 9c45aad commit 939076d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/gceworker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function refresh_ssh_config() {
7878
}
7979

8080
function update_firewall() {
81-
MY_IP="$(curl -4 -s https://icanhazip.com/)"
81+
MY_IP="$(dig +short myip.opendns.com @resolver1.opendns.com)"
8282
RULE="$(whoami)-home-ssh-rule"
8383
gcloud compute firewall-rules delete --quiet "$RULE" || true
8484
gcloud compute firewall-rules create --quiet "$RULE" \

0 commit comments

Comments
 (0)