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
e346cead
Commit
e346cead
authored
Nov 10, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: whitespace and style sweep
parent
2ef52e06
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
10 deletions
+3
-10
VoucherController.php
...trollers/OPNsense/CaptivePortal/Api/VoucherController.php
+0
-1
Radius.php
src/opnsense/mvc/app/library/OPNsense/Auth/Radius.php
+1
-1
connect.py
src/opnsense/scripts/ipsec/connect.py
+1
-4
disconnect.py
src/opnsense/scripts/ipsec/disconnect.py
+1
-4
No files found.
src/opnsense/mvc/app/controllers/OPNsense/CaptivePortal/Api/VoucherController.php
View file @
e346cead
...
@@ -127,5 +127,4 @@ class VoucherController extends ApiControllerBase
...
@@ -127,5 +127,4 @@ class VoucherController extends ApiControllerBase
}
}
return
array
();
return
array
();
}
}
}
}
src/opnsense/mvc/app/library/OPNsense/Auth/Radius.php
View file @
e346cead
...
@@ -374,7 +374,7 @@ class Radius implements IAuthConnector
...
@@ -374,7 +374,7 @@ class Radius implements IAuthConnector
if
(
!
$radius
)
{
if
(
!
$radius
)
{
syslog
(
LOG_ERR
,
'RadiusError:'
.
radius_strerror
(
$error
));
syslog
(
LOG_ERR
,
'RadiusError:'
.
radius_strerror
(
$error
));
}
else
{
}
else
{
switch
(
$request
)
{
switch
(
$request
)
{
case
RADIUS_ACCESS_ACCEPT
:
case
RADIUS_ACCESS_ACCEPT
:
while
(
$resa
=
radius_get_attr
(
$radius
))
{
while
(
$resa
=
radius_get_attr
(
$radius
))
{
switch
(
$resa
[
'attr'
])
{
switch
(
$resa
[
'attr'
])
{
...
...
src/opnsense/scripts/ipsec/connect.py
View file @
e346cead
...
@@ -51,10 +51,7 @@ for conns in s.list_conns():
...
@@ -51,10 +51,7 @@ for conns in s.list_conns():
if
child
not
in
conns_found
:
if
child
not
in
conns_found
:
conns_found
.
append
(
child
)
conns_found
.
append
(
child
)
# setup connection if found
# setup connection if found
for
conn_id
in
conns_found
:
for
conn_id
in
conns_found
:
devnull
=
open
(
os
.
devnull
,
'w'
)
devnull
=
open
(
os
.
devnull
,
'w'
)
subprocess
.
call
([
'/usr/local/sbin/ipsec'
,
'up'
,
conn_id
],
stdin
=
devnull
,
stdout
=
devnull
,
stderr
=
devnull
)
subprocess
.
call
([
'/usr/local/sbin/ipsec'
,
'up'
,
conn_id
],
stdin
=
devnull
,
stdout
=
devnull
,
stderr
=
devnull
)
src/opnsense/scripts/ipsec/disconnect.py
View file @
e346cead
...
@@ -47,10 +47,7 @@ for sas in s.list_sas():
...
@@ -47,10 +47,7 @@ for sas in s.list_sas():
if
sa
==
conn_id
:
if
sa
==
conn_id
:
conn_found
=
True
conn_found
=
True
# terminate connection if found
# terminate connection if found
if
conn_found
:
if
conn_found
:
devnull
=
open
(
os
.
devnull
,
'w'
)
devnull
=
open
(
os
.
devnull
,
'w'
)
subprocess
.
call
([
'/usr/local/sbin/ipsec'
,
'down'
,
conn_id
],
stdin
=
devnull
,
stdout
=
devnull
,
stderr
=
devnull
)
subprocess
.
call
([
'/usr/local/sbin/ipsec'
,
'down'
,
conn_id
],
stdin
=
devnull
,
stdout
=
devnull
,
stderr
=
devnull
)
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