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
df230d14
Commit
df230d14
authored
Aug 11, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) small cleanups, uninitialized vars
parent
b9c9165f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
vpn_ipsec_phase2.php
src/www/vpn_ipsec_phase2.php
+7
-3
No files found.
src/www/vpn_ipsec_phase2.php
View file @
df230d14
...
...
@@ -47,7 +47,7 @@ function pconfig_to_ealgos($pconfig)
if
(
in_array
(
$algo_name
,
$pconfig
[
'ealgos'
]))
{
$ealg
=
array
();
$ealg
[
'name'
]
=
$algo_name
;
if
(
is
_array
(
$algo_data
[
'keysel'
]))
{
if
(
is
set
(
$algo_data
[
'keysel'
]))
{
$ealg
[
'keylen'
]
=
$pconfig
[
"keylen_"
.
$algo_name
];
}
$ealgos
[]
=
$ealg
;
...
...
@@ -252,7 +252,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
break
;
}
/* Check if the localid_type is an interface, to confirm if it has a valid subnet. */
if
(
is
_array
(
$config
[
'interfaces'
][
$pconfig
[
'localid_type'
]]))
{
if
(
is
set
(
$config
[
'interfaces'
][
$pconfig
[
'localid_type'
]]))
{
// Don't let an empty subnet into racoon.conf, it can cause parse errors. Ticket #2201.
$address
=
get_interface_ip
(
$pconfig
[
'localid_type'
]);
$netbits
=
get_interface_subnet
(
$pconfig
[
'localid_type'
]);
...
...
@@ -447,7 +447,11 @@ $( document ).ready(function() {
change_mode
(
'
<?=
$pconfig
[
'mode'
]
?>
'
);
change_protocol
(
'
<?=
$pconfig
[
'proto'
]
?>
'
);
typesel_change_local
(
<?=
$pconfig
[
'localid_netbits'
]
?>
);
<?php
if
(
isset
(
$pconfig
[
'natlocalid_netbits'
]))
:
?>
typesel_change_natlocal
(
<?=
$pconfig
[
'natlocalid_netbits'
]
?>
);
<?php
endif
;
?>
<?php
if
(
!
isset
(
$pconfig
[
'mobile'
]))
:
?>
typesel_change_remote
(
<?=
$pconfig
[
'remoteid_netbits'
]
?>
);
...
...
@@ -742,7 +746,7 @@ if (isset($input_errors) && count($input_errors) > 0) {
<tr>
<td><i
class=
"fa fa-info-circle text-muted"
></i>
<?=
gettext
(
"Address:"
);
?>
</td>
<td>
<input
name=
"natlocalid_address"
type=
"text"
class=
"formfld unknown ipv4v6"
id=
"natlocalid_address"
size=
"28"
value=
"
<?=
$pconfig
[
'natlocalid_address'
]
;
?>
"
/>
<input
name=
"natlocalid_address"
type=
"text"
class=
"formfld unknown ipv4v6"
id=
"natlocalid_address"
size=
"28"
value=
"
<?=
isset
(
$pconfig
[
'natlocalid_address'
])
?
$pconfig
[
'natlocalid_address'
]
:
""
;
?>
"
/>
/
<select
name=
"natlocalid_netbits"
class=
"formselect ipv4v6"
id=
"natlocalid_netbits"
>
<?php
for
(
$i
=
128
;
$i
>=
0
;
$i
--
)
:
...
...
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