98_WOL: constat eliminated in UDP mode

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7768 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
dietmar63
2015-01-29 22:20:09 +00:00
parent e6f3009d13
commit 1540bb3c1b

View File

@@ -255,7 +255,6 @@ sub WOL_by_udp {
return 1;
}
$host = '192.168.2.255';
my $ip_addr = inet_aton($host);
my $sock_addr = sockaddr_in($port, $ip_addr);
$mac_addr =~ s/://g;
@@ -316,7 +315,8 @@ sub WOL_SetNextTimer($;$) {
################################################################################
sub WOL_Attr($$$) {
my ($cmd, $name, $attrName, $attrVal) = @_;
$attrVal = "" if(!defined $attrVal);
my $hash = $defs{$name};
if ($attrName eq "useUdpBroadcast") {