|
edit:add-var publicip~ {|@argv|
|
|
use framagit.org/benjamin.vaudour/elv-lib/mods/common
|
|
var f = {|t|
|
|
var l = (common:cond (eq $t -6) 'IPv6: ' 'IPv4: ')
|
|
e:curl $t ifconfig.co/ip 2> /dev/null | each {|ip| echo (styled $l bold yellow) $ip}
|
|
}
|
|
$f -4
|
|
$f -6
|
|
}
|