From 6b1cb3fda770ea2edeed57c353e131f17830cab4 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 9 Sep 2013 10:00:39 -0300 Subject: [PATCH] Add action to auto created passtru mac rule --- etc/inc/captiveportal.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 7bbb3cd092..e1452ef122 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1791,6 +1791,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut $macrules .= "pipe delete {$pipeno}\n"; } unset($config['captiveportal'][$cpzone]['passthrumac'][$idx]); + $mac['action'] = 'pass'; $mac['mac'] = $clientmac; $config['captiveportal'][$cpzone]['passthrumac'][] = $mac; $macrules .= captiveportal_passthrumac_configure_entry($mac);