mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 14:03:00 +02:00
captivectrl: Remove unused code
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -237,14 +237,6 @@ static int add_interface_rule(const char* intf, int allow_webif_access) {
|
||||
if (r)
|
||||
return r;
|
||||
|
||||
#if 0
|
||||
snprintf(command, sizeof(command), IPTABLES " -A CAPTIVE_PORTAL -o %s"
|
||||
" -j CAPTIVE_PORTAL_CLIENTS", intf);
|
||||
r = safe_system(command);
|
||||
if (r)
|
||||
return r;
|
||||
#endif
|
||||
|
||||
if (allow_webif_access) {
|
||||
snprintf(command, sizeof(command), IPTABLES " -A CAPTIVE_PORTAL_CLIENTS"
|
||||
" -i %s -p tcp --dport 444 -j RETURN", intf);
|
||||
|
||||
Reference in New Issue
Block a user