projects
/
webi-installers
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add info for debug api
[webi-installers/.git]
/
myip
/
myip.ps1
1
#!/usr/bin/env pwsh
2
3
$ipv4 = curl.exe -sf https://api.ipify.org
4
5
IF(!($ipv4 -eq $null -or $ipv4 -eq ""))
6
{
7
echo "IPv4 (A) : $ipv4"
8
}
9
10
$ipv6 = curl.exe -sf https://api6.ipify.org
11
12
IF(!($ipv6 -eq $null -or $ipv6 -eq ""))
13
{
14
echo "IPv6 (AAAA): $ipv6"
15
}