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
3088925c
Commit
3088925c
authored
Sep 06, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Sep 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(firewall, nat) change "Redirect target IP" to alias/host selectionbox like the rest.
(cherry picked from commit
d3d583ab
)
parent
652489b0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
firewall_nat_edit.php
src/www/firewall_nat_edit.php
+24
-1
No files found.
src/www/firewall_nat_edit.php
View file @
3088925c
...
...
@@ -837,7 +837,30 @@ $( document ).ready(function() {
<tr
class=
"act_no_rdr"
>
<td><a
id=
"help_for_localip"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
"Redirect target IP"
);
?>
</td>
<td>
<input
name=
"target"
type=
"text"
class=
"formfldalias"
size=
"20"
value=
"
<?=
$pconfig
[
'target'
];
?>
"
/>
<table
class=
"table table-condensed"
>
<tr>
<td>
<select
name=
"target"
id=
"target"
class=
"selectpicker"
data-live-search=
"true"
data-size=
"5"
data-width=
"auto"
>
<option
data-other=
true
value=
"
<?=
$pconfig
[
'target'
];
?>
"
<?=
!
is_alias
(
$pconfig
[
'target'
])
?
"selected=
\"
selected
\"
"
:
""
;
?>
>
<?=
gettext
(
"Single host"
);
?>
</option>
<optgroup
label=
"
<?=
gettext
(
"Aliases"
);
?>
"
>
<?php
foreach
(
legacy_list_aliases
(
"network"
)
as
$alias
)
:?>
<
option
value
=
"<?=
$alias['name']
;?>"
<?=
$alias
[
'name'
]
==
$pconfig
[
'target'
]
?
"selected=
\"
selected
\"
"
:
""
;
?>
>
<?=
htmlspecialchars
(
$alias
[
'name'
]);
?>
</option>
<?php
endforeach
;
?>
</optgroup>
</select>
</td>
</tr>
<tr>
<td>
<div
class=
"input-group"
>
<!-- updates to "other" option in target -->
<input
type=
"text"
id=
"target_address"
for=
"target"
value=
"
<?=
$pconfig
[
'target'
];
?>
"
aria-label=
"
<?=
gettext
(
"Redirect target IP"
);
?>
"
/>
</div>
</td>
</tr>
</table>
<div
class=
"hidden"
for=
"help_for_localip"
>
<?=
gettext
(
"Enter the internal IP address of "
.
"the server on which you want to map the ports."
);
?>
<br/>
...
...
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