mirror of
https://github.com/notwa/rc
synced 2025-02-05 15:43:22 -08:00
use a different IP that always(?) fails
instead of potentially hitting a locally-running HTTP server
This commit is contained in:
parent
f193abb184
commit
bf9a743e14
2 changed files with 2 additions and 2 deletions
2
sh/ea
2
sh/ea
|
@ -3,7 +3,7 @@
|
||||||
# YES_ZSH YES_BASH YES_DASH YES_ASH
|
# YES_ZSH YES_BASH YES_DASH YES_ASH
|
||||||
|
|
||||||
__ea_curl() {
|
__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 ]
|
if [ $? = 2 ]
|
||||||
then __ea_curl() { curl -sS "$@"; }
|
then __ea_curl() { curl -sS "$@"; }
|
||||||
else __ea_curl() { curl --no-progress-meter "$@"; }
|
else __ea_curl() { curl --no-progress-meter "$@"; }
|
||||||
|
|
|
@ -6,7 +6,7 @@ __notice_warn() {
|
||||||
}
|
}
|
||||||
|
|
||||||
__notice_curl() {
|
__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 ]
|
if [ $? = 2 ]
|
||||||
then __notice_curl() { curl -fsS "$@"; }
|
then __notice_curl() { curl -fsS "$@"; }
|
||||||
else __notice_curl() { curl -f --no-progress-meter "$@"; }
|
else __notice_curl() { curl -f --no-progress-meter "$@"; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue