mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 16:51:29 +00:00
neofetch: add -L to curl. Closes #1823
This commit is contained in:
2
neofetch
2
neofetch
@@ -3903,7 +3903,7 @@ get_public_ip() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$public_ip" ]] && type -p curl >/dev/null; then
|
if [[ -z "$public_ip" ]] && type -p curl >/dev/null; then
|
||||||
public_ip="$(curl --max-time "$public_ip_timeout" -w '\n' "$public_ip_host")"
|
public_ip="$(curl -L --max-time "$public_ip_timeout" -w '\n' "$public_ip_host")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$public_ip" ]] && type -p wget >/dev/null; then
|
if [[ -z "$public_ip" ]] && type -p wget >/dev/null; then
|
||||||
|
Reference in New Issue
Block a user