2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

70_STV: fix of using more than one NIC without assigned IP

git-svn-id: https://svn.fhem.de/fhem/trunk@10587 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
bentele 2016-01-22 06:34:59 +00:00
parent d4e7df83c7
commit d371304bb7

View File

@ -86,6 +86,7 @@ sub getMAC4IP($)
my $IP = shift;
my @interfaces = IO::Interface::Simple->interfaces;
foreach my $if (@interfaces) {
next unless defined ($if->address);
if ($if->address eq $IP) {
return $if->hwaddr;
}