mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
Services: Captive Portal - fix regresssion in 8ba454ab04, argparse doesn't seem to like an argument starting with a minus (-) sign even when quoted.
making assignments explicit with an equal [=] sign seems to fix this.
This commit is contained in:
parent
86ffbd88ad
commit
6d507b1dd9
@ -6,7 +6,7 @@ message:list registered clients
|
||||
|
||||
[allow]
|
||||
command:/usr/local/opnsense/scripts/OPNsense/CaptivePortal/allow.py
|
||||
parameters:-zoneid %s -username %s -ip_address %s -authenticated_via %s
|
||||
parameters:-zoneid=%s -username=%s -ip_address=%s -authenticated_via=%s
|
||||
type:script_output
|
||||
message:allow client access to captive portal
|
||||
|
||||
@ -18,7 +18,7 @@ message:disconnect session %s (reason %s)
|
||||
|
||||
[set.session_restrictions]
|
||||
command:/usr/local/opnsense/scripts/OPNsense/CaptivePortal/set_session_restrictions.py
|
||||
parameters:-zoneid %s -sessionid %s -session_timeout %s
|
||||
parameters:-zoneid=%s -sessionid=%s -session_timeout=%s
|
||||
type:script_output
|
||||
message:set extra restrictions for session (%s) %s
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user