1
18.7 Legacy Series / Re: os-wol plugin
« on: June 14, 2019, 10:49:55 pm »
It seems that the broadcast ip in private function calculateSubnetBroadcast ($ip_addr, $cidr) is incorrectly calculated. In my case, broadcast ip was calculated as -64.168.255.255 for a 16 bit mask. In this situation, of course, it will not be able to work properly.
The error is in line 149 in the WolController.php file:
instead
$int_bcast >> 24,
should be
($int_bcast >> 24) & 255,
The error is in line 149 in the WolController.php file:
instead
$int_bcast >> 24,
should be
($int_bcast >> 24) & 255,