Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
e6c1bf49
Commit
e6c1bf49
authored
Sep 29, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(captiveportal, new) work in progress script base
parent
27b44c70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
allow.py
src/opnsense/scripts/OPNsense/CaptivePortal/allow.py
+1
-1
listClients.py
src/opnsense/scripts/OPNsense/CaptivePortal/listClients.py
+1
-1
No files found.
src/opnsense/scripts/OPNsense/CaptivePortal/allow.py
View file @
e6c1bf49
...
...
@@ -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
:
...
...
src/opnsense/scripts/OPNsense/CaptivePortal/listClients.py
View file @
e6c1bf49
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment