]> git.rmz.io Git - dotfiles.git/blobdiff - bin/whatsmyip
lazyvim: absorb keymaps
[dotfiles.git] / bin / whatsmyip
index 8f6cbc77ce7b657c4c1d22268ca05cccc94841a0..2d0d796a2766df1622c4831b3e186c5214622c7a 100755 (executable)
@@ -1,4 +1,8 @@
 #!/bin/bash
-# only works behind DD-WRT router
-#ssh root@192.168.1.3 -p 2222 -q "nvram get wan_ipaddr"
-curl -s ifconfig.me/ip
+
+curl -4 -s ip.rmz.io && echo
+ret4=$?
+curl -6 -s ip.rmz.io && echo
+ret6=$?
+
+exit $((ret4 && ret6))