mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
wirelessctrl: fix blue access "enabled" checkbox.
This commit is contained in:
@@ -130,7 +130,7 @@ int main(void) {
|
|||||||
macaddress = strtok(NULL, ",");
|
macaddress = strtok(NULL, ",");
|
||||||
enabled = strtok(NULL, ",");
|
enabled = strtok(NULL, ",");
|
||||||
|
|
||||||
if (strncmp(enabled, "on", 2) != 0) {
|
if (strcmp(enabled, "on") == 0) {
|
||||||
/* both specified, added security */
|
/* both specified, added security */
|
||||||
if ((strlen(macaddress) == 17) && (VALID_IP_AND_MASK(ipaddress))) {
|
if ((strlen(macaddress) == 17) && (VALID_IP_AND_MASK(ipaddress))) {
|
||||||
snprintf(command, STRING_SIZE-1, "/sbin/iptables -A WIRELESSINPUT -m mac --mac-source %s -s %s -i %s -j ACCEPT", macaddress, ipaddress, blue_dev);
|
snprintf(command, STRING_SIZE-1, "/sbin/iptables -A WIRELESSINPUT -m mac --mac-source %s -s %s -i %s -j ACCEPT", macaddress, ipaddress, blue_dev);
|
||||||
|
|||||||
Reference in New Issue
Block a user