mirror of
https://codeberg.org/prof_x_pvt_ltd/captive.whump.shanti-portal
synced 2024-08-14 22:46:42 +00:00
disable use of mac by default.
This commit is contained in:
parent
3f4aa5245b
commit
18e6ea66a7
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ enabled = False
|
|||
debug = True
|
||||
|
||||
# If you know you won't be able to get the clients HW address then use this.
|
||||
only_ip = True
|
||||
use_mac = False
|
||||
|
||||
# Command templates for arping and iptables.
|
||||
# Arping might block so make sure you use a timeout and limit the number of
|
||||
|
|
|
@ -71,7 +71,7 @@ def run(arg):
|
|||
pass
|
||||
|
||||
# If HW address was found, use it now.
|
||||
if client_mac:
|
||||
if client_mac and config.getboolean('iptables', 'use_mac'):
|
||||
l.debug('Found client HW address: {hw}'.format(
|
||||
hw=client_mac
|
||||
))
|
||||
|
|
Loading…
Reference in a new issue