mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-16 02:49:10 +01:00
Updated list-ip-addresses.ps1
This commit is contained in:
parent
3eb68560d8
commit
b5ff7b0a6c
@ -31,10 +31,11 @@ function WriteLocalInterface($interface) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
WriteLocalInterface "Ethernet"
|
if (!$IsLinux) {
|
||||||
WriteLocalInterface "WLAN"
|
WriteLocalInterface "Ethernet"
|
||||||
WriteLocalInterface "Bluetooth"
|
WriteLocalInterface "WLAN"
|
||||||
|
WriteLocalInterface "Bluetooth"
|
||||||
|
}
|
||||||
if ($IsLinux) {
|
if ($IsLinux) {
|
||||||
[string]$publicIPv4 = (curl -4 --silent ifconfig.co)
|
[string]$publicIPv4 = (curl -4 --silent ifconfig.co)
|
||||||
[string]$publicIPv6 = (curl -6 --silent ifconfig.co)
|
[string]$publicIPv6 = (curl -6 --silent ifconfig.co)
|
||||||
|
Loading…
Reference in New Issue
Block a user