cardano-docker/scripts/functions/get_public_ip

3 lines
119 B
Plaintext
Raw Normal View History

2021-02-13 15:19:38 +00:00
function get_public_ip {
echo $(dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}')
}