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