mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
(captiveportal, new) work in progress script base
This commit is contained in:
parent
27b44c707a
commit
e6c1bf49ee
@ -38,7 +38,7 @@ from lib.ipfw import IPFW
|
||||
parameters = {'username': '', 'ip_address': None, 'zoneid': None, 'output_type':'plain'}
|
||||
current_param = None
|
||||
for param in sys.argv[1:]:
|
||||
if param[0] == '/':
|
||||
if len(param) > 1 and param[0] == '/':
|
||||
current_param = param[1:].lower()
|
||||
elif current_param is not None:
|
||||
if current_param in parameters:
|
||||
|
||||
@ -36,7 +36,7 @@ from lib.db import DB
|
||||
parameters = {'zoneid': None, 'output_type':'plain'}
|
||||
current_param = None
|
||||
for param in sys.argv[1:]:
|
||||
if param[0] == '/':
|
||||
if len(param) > 1 and param[0] == '/':
|
||||
current_param = param[1:].lower()
|
||||
elif current_param is not None:
|
||||
if current_param in parameters:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user