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