Just return the literal values provided by the plc_config.xml file. This
authorStephen Soltesz <soltesz@cs.princeton.edu>
Wed, 28 Nov 2007 22:58:21 +0000 (22:58 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Wed, 28 Nov 2007 22:58:21 +0000 (22:58 +0000)
obviously depends upon the values being set correctly.

ipod.conf.php

index 695e001..06d35ff 100755 (executable)
 include('plc_config.php');
 
 // Allow only the API server to send a reboot packet
-$IP_SUBNET = gethostbyname(PLC_API_HOST);
+$IP_SUBNET = PLC_API_IPOD_SUBNET;
+$IP_MASK   = PLC_API_IPOD_MASK;
 
 echo <<<EOF
 # IP range that we respond to reboot requests from
 IP_SUBNET=$IP_SUBNET
-IP_MASK=255.255.255.255
+IP_MASK=$IP_MASK
 
 EOF;
 
-?>
\ No newline at end of file
+?>