Updated list-ip-addresses.ps1

This commit is contained in:
Markus Fleschutz 2024-06-18 20:25:54 +02:00
parent 3eb68560d8
commit b5ff7b0a6c

View File

@ -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)