gyptazy
@gyptazy@gyptazy.ch
Therefore, I just created a PR (https://brew.bsd.cafe/BSDCafe/checkmyip/pulls/1) which will return just the raw IP by requesting the context path /raw. So you can directly use it in shell scripts like:
ipv4=$(curl -4 myip.bsd.cafe/raw)
ipv6=$(curl -6 myip.bsd.cafe/raw)