mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Fix performance
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
This commit is contained in:
parent
f45f29f920
commit
6b42d75378
@ -139,7 +139,7 @@ public class NetworkUtils {
|
||||
try {
|
||||
for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {
|
||||
NetworkInterface networkInterface = en.nextElement();
|
||||
if (!networkInterface.isLoopback()) {
|
||||
if (networkInterface.isUp() && !networkInterface.isLoopback()) {
|
||||
result.add(networkInterface.getName());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user