Skip to content

Commit

Permalink
Merge pull request #4 from mouyase/master
Browse files Browse the repository at this point in the history
Fix: No JSON object could be decoded
  • Loading branch information
septs authored Jun 15, 2020
2 parents 8511fc6 + c4c790a commit 2ca2469
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zsh-proxy.plugin.zsh
Original file line number Diff line number Diff line change
@@ -35,15 +35,16 @@ __check_ip() {
echo "Check what your IP is"
echo "----------------------------------------"
echo -n "IPv4: "
curl -s https://api-ipv4.ip.sb/ip
curl -s -k https://api-ipv4.ip.sb/ip
echo "----------------------------------------"
echo -n "IPv6: "
curl -s https://api-ipv6.ip.sb/ip
curl -s -k https://api-ipv6.ip.sb/ip

if command -v python >/dev/null; then
echo ""
echo "----------------------------------------"
echo "Info: "
curl -s https://api.ip.sb/geoip | python -m json.tool
curl -s -k https://api.ip.sb/geoip | python -m json.tool
echo ""
fi

0 comments on commit 2ca2469

Please sign in to comment.