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