From 5523326870c467046e99e16db16a774a328a0960 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Wed, 15 Mar 2023 23:55:17 +0000 Subject: [PATCH] bin: support ipv4 and ipv6 in whatsmyip --- bin/whatsmyip | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/whatsmyip b/bin/whatsmyip index c72ed04..2d0d796 100755 --- a/bin/whatsmyip +++ b/bin/whatsmyip @@ -1,3 +1,8 @@ #!/bin/bash -curl -s ip.rmz.io +curl -4 -s ip.rmz.io && echo +ret4=$? +curl -6 -s ip.rmz.io && echo +ret6=$? + +exit $((ret4 && ret6)) -- 2.48.1