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
84c7eaa4
Commit
84c7eaa4
authored
Aug 01, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Aug 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(firewall, nat 1-to-1) fix copy feature
(cherry picked from commit
7fe0f4c1
)
parent
52ce26a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
firewall_nat_1to1_edit.php
src/www/firewall_nat_1to1_edit.php
+4
-4
No files found.
src/www/firewall_nat_1to1_edit.php
View file @
84c7eaa4
...
...
@@ -53,21 +53,21 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if
(
isset
(
$configId
))
{
// copy settings from config
foreach
(
array
(
'disabled'
,
'interface'
,
'external'
,
'descr'
,
'natreflection'
)
as
$fieldname
)
{
if
(
isset
(
$a_1to1
[
$
i
d
][
$fieldname
]))
{
$pconfig
[
$fieldname
]
=
$a_1to1
[
$
i
d
][
$fieldname
];
if
(
isset
(
$a_1to1
[
$
configI
d
][
$fieldname
]))
{
$pconfig
[
$fieldname
]
=
$a_1to1
[
$
configI
d
][
$fieldname
];
}
else
{
$pconfig
[
$fieldname
]
=
null
;
}
}
// read settings with some kind of logic
address_to_pconfig
(
$a_1to1
[
$
i
d
][
'source'
],
$pconfig
[
'src'
],
$a_1to1
[
$
configI
d
][
'source'
],
$pconfig
[
'src'
],
$pconfig
[
'srcmask'
],
$pconfig
[
'srcnot'
],
$pconfig
[
'__unused__'
],
$pconfig
[
'__unused__'
]
);
address_to_pconfig
(
$a_1to1
[
$
i
d
][
'destination'
],
$pconfig
[
'dst'
],
$a_1to1
[
$
configI
d
][
'destination'
],
$pconfig
[
'dst'
],
$pconfig
[
'dstmask'
],
$pconfig
[
'dstnot'
],
$pconfig
[
'__unused__'
],
$pconfig
[
'__unused__'
]
);
...
...
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