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
b4d2aa2f
Commit
b4d2aa2f
authored
Jul 09, 2015
by
Ad Schellevis
Committed by
Franco Fichtner
Jul 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) cleanups vpn.inc
parent
d74ae0b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
vpn.inc
src/etc/inc/vpn.inc
+7
-3
No files found.
src/etc/inc/vpn.inc
View file @
b4d2aa2f
...
...
@@ -1132,7 +1132,7 @@ EOD;
function
vpn_pppoes_configure
()
{
global
$config
;
if
(
is_array
(
$config
[
'pppoes'
][
'pppoe'
]))
{
if
(
is
set
(
$config
[
'pppoes'
][
'pppoe'
])
&&
is
_array
(
$config
[
'pppoes'
][
'pppoe'
]))
{
foreach
(
$config
[
'pppoes'
][
'pppoe'
]
as
$pppoe
)
vpn_pppoe_configure
(
$pppoe
);
}
...
...
@@ -1352,10 +1352,14 @@ function vpn_l2tp_configure()
global
$config
,
$g
;
$syscfg
=
$config
[
'system'
];
$l2tpcfg
=
$config
[
'l2tp'
];
if
(
isset
(
$config
[
'l2tp'
]))
{
$l2tpcfg
=
$config
[
'l2tp'
];
}
else
{
return
0
;
}
if
(
file_exists
(
"/var/run/booting"
))
{
if
(
!
$l2tpcfg
[
'mode'
]
||
(
$l2tpcfg
[
'mode'
]
==
"off"
)
)
if
(
!
isset
(
$l2tpcfg
[
'mode'
])
||
$l2tpcfg
[
'mode'
]
==
"off"
)
return
0
;
echo
gettext
(
"Configuring l2tp VPN service... "
);
...
...
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