3 lines
119 B
Plaintext
3 lines
119 B
Plaintext
function get_public_ip {
|
|
echo $(dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}')
|
|
} |