1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-09-19 14:24:07 -07:00

use a different IP that always(?) fails

instead of potentially hitting a locally-running HTTP server
This commit is contained in:
Connor Olding 2024-07-12 02:03:58 -07:00
parent f193abb184
commit bf9a743e14
2 changed files with 2 additions and 2 deletions

2
sh/ea
View file

@ -3,7 +3,7 @@
# YES_ZSH YES_BASH YES_DASH YES_ASH
__ea_curl() {
curl -q --no-progress-meter 0.0.0.0 >/dev/null 2>&1
curl -q --no-progress-meter 127.255.255.255 >/dev/null 2>&1
if [ $? = 2 ]
then __ea_curl() { curl -sS "$@"; }
else __ea_curl() { curl --no-progress-meter "$@"; }

View file

@ -6,7 +6,7 @@ __notice_warn() {
}
__notice_curl() {
curl -q --no-progress-meter 0.0.0.0 >/dev/null 2>&1
curl -q --no-progress-meter 127.255.255.255 >/dev/null 2>&1
if [ $? = 2 ]
then __notice_curl() { curl -fsS "$@"; }
else __notice_curl() { curl -f --no-progress-meter "$@"; }