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
2d2a7c11
Commit
2d2a7c11
authored
Nov 06, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: whitespace sweep
parent
92948294
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
vouchers.volt
...nsense/mvc/app/views/OPNsense/CaptivePortal/vouchers.volt
+1
-1
list_status.py
src/opnsense/scripts/ipsec/list_status.py
+5
-6
services_rfc2136.php
src/www/services_rfc2136.php
+1
-1
No files found.
src/opnsense/mvc/app/views/OPNsense/CaptivePortal/vouchers.volt
View file @
2d2a7c11
...
@@ -326,4 +326,4 @@ POSSIBILITY OF SUCH DAMAGE.
...
@@ -326,4 +326,4 @@ POSSIBILITY OF SUCH DAMAGE.
</div>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
src/opnsense/scripts/ipsec/list_status.py
View file @
2d2a7c11
...
@@ -43,11 +43,11 @@ for conns in s.list_conns():
...
@@ -43,11 +43,11 @@ for conns in s.list_conns():
result
[
connection_id
][
'local-id'
]
=
''
result
[
connection_id
][
'local-id'
]
=
''
result
[
connection_id
][
'local-class'
]
=
[]
result
[
connection_id
][
'local-class'
]
=
[]
result
[
connection_id
][
'remote-id'
]
=
''
result
[
connection_id
][
'remote-id'
]
=
''
result
[
connection_id
][
'remote-class'
]
=
[]
result
[
connection_id
][
'remote-class'
]
=
[]
result
[
connection_id
][
'children'
]
=
conns
[
connection_id
][
'children'
]
result
[
connection_id
][
'children'
]
=
conns
[
connection_id
][
'children'
]
result
[
connection_id
][
'sas'
]
=
[]
result
[
connection_id
][
'sas'
]
=
[]
# parse local-% and remote-% keys
# parse local-% and remote-% keys
for
connKey
in
conns
[
connection_id
]
.
keys
():
for
connKey
in
conns
[
connection_id
]
.
keys
():
if
connKey
.
find
(
'local-'
)
==
0
:
if
connKey
.
find
(
'local-'
)
==
0
:
if
'id'
in
conns
[
connection_id
][
connKey
]:
if
'id'
in
conns
[
connection_id
][
connKey
]:
...
@@ -57,9 +57,9 @@ for conns in s.list_conns():
...
@@ -57,9 +57,9 @@ for conns in s.list_conns():
if
'id'
in
conns
[
connection_id
][
connKey
]:
if
'id'
in
conns
[
connection_id
][
connKey
]:
result
[
connection_id
][
'remote-id'
]
=
conns
[
connection_id
][
connKey
][
'id'
]
result
[
connection_id
][
'remote-id'
]
=
conns
[
connection_id
][
connKey
][
'id'
]
result
[
connection_id
][
'remote-class'
]
.
append
(
conns
[
connection_id
][
connKey
][
'class'
])
result
[
connection_id
][
'remote-class'
]
.
append
(
conns
[
connection_id
][
connKey
][
'class'
])
result
[
connection_id
][
'local-class'
]
=
'+'
.
join
(
result
[
connection_id
][
'local-class'
])
result
[
connection_id
][
'local-class'
]
=
'+'
.
join
(
result
[
connection_id
][
'local-class'
])
result
[
connection_id
][
'remote-class'
]
=
'+'
.
join
(
result
[
connection_id
][
'remote-class'
])
result
[
connection_id
][
'remote-class'
]
=
'+'
.
join
(
result
[
connection_id
][
'remote-class'
])
# attach Security Associations
# attach Security Associations
for
sas
in
s
.
list_sas
():
for
sas
in
s
.
list_sas
():
...
@@ -68,4 +68,3 @@ for sas in s.list_sas():
...
@@ -68,4 +68,3 @@ for sas in s.list_sas():
result
[
sa
][
'sas'
]
.
append
(
sas
[
sa
])
result
[
sa
][
'sas'
]
.
append
(
sas
[
sa
])
print
(
ujson
.
dumps
(
result
))
print
(
ujson
.
dumps
(
result
))
src/www/services_rfc2136.php
View file @
2d2a7c11
...
@@ -169,7 +169,7 @@ $main_buttons = array(
...
@@ -169,7 +169,7 @@ $main_buttons = array(
</td>
</td>
<td
valign=
"middle"
class=
"list nowrap"
>
<td
valign=
"middle"
class=
"list nowrap"
>
<a
href=
"services_rfc2136_edit.php?id=
<?=
$i
;
?>
"
>
<a
href=
"services_rfc2136_edit.php?id=
<?=
$i
;
?>
"
>
<button
type=
"button"
class=
"btn btn-xs btn-default"
><span
class=
"fa fa-pencil"
></span></button>
<button
type=
"button"
class=
"btn btn-xs btn-default"
><span
class=
"fa fa-pencil"
></span></button>
</a>
</a>
<a
href=
"services_rfc2136.php?act=del&id=
<?=
$i
;
?>
"
onclick=
"return confirm('
<?=
gettext
(
"Do you really want to delete this client?"
);
?>
')"
>
<a
href=
"services_rfc2136.php?act=del&id=
<?=
$i
;
?>
"
onclick=
"return confirm('
<?=
gettext
(
"Do you really want to delete this client?"
);
?>
')"
>
<button
type=
"button"
class=
"btn btn-xs btn-default"
><span
class=
"fa fa-trash-o"
></span></button>
<button
type=
"button"
class=
"btn btn-xs btn-default"
><span
class=
"fa fa-trash-o"
></span></button>
...
...
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