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
fc36c539
Commit
fc36c539
authored
Mar 07, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Mar 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) small cleanups load_balancer_virtual_server_edit.php
(cherry picked from commit
35bd5f50
)
parent
4d957841
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
4 deletions
+30
-4
load_balancer_virtual_server_edit.php
src/www/load_balancer_virtual_server_edit.php
+30
-4
No files found.
src/www/load_balancer_virtual_server_edit.php
View file @
fc36c539
...
...
@@ -108,6 +108,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if
(
$vsent
[
'sitedown'
]
==
""
)
{
unset
(
$vsent
[
'sitedown'
]);
}
if
(
$vsent
[
'mode'
]
!=
'relay'
){
// relay protocol only applies to relay
unset
(
$vsent
[
'relay_protocol'
]);
}
if
(
isset
(
$id
))
{
if
(
$a_vs
[
$id
][
'name'
]
!=
$pconfig
[
'name'
])
{
/* Because the VS name changed, mark the old name for cleanup. */
...
...
@@ -147,6 +152,15 @@ include("head.inc");
$
(
"
#ipadd
"
).
typeahead
({
source
:
all_aliases
[
'
host
'
]
});
$
(
"
#port
"
).
typeahead
({
source
:
all_aliases
[
'
port
'
]
});
$
(
"
#mode
"
).
change
(
function
(){
if
(
$
(
this
).
val
()
==
'
redirect
'
)
{
$
(
"
#protocol
"
).
hide
();
}
else
{
$
(
"
#protocol
"
).
show
();
}
});
$
(
"
#mode
"
).
change
();
});
</script>
<!-- push all available (nestable) aliases in a hidden select box -->
...
...
@@ -268,13 +282,25 @@ include("head.inc");
</td>
</tr>
<tr>
<td><
i
class=
"fa fa-info-circle text-muted"
></i>
<?=
gettext
(
"Mode"
);
?>
</td>
<td><
a
id=
"help_for_mode"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
"Mode"
);
?>
</td>
<td>
<input
type=
"radio"
name=
"mode"
value=
"redirect"
<?=
$pconfig
[
'mode'
]
!=
'relay'
?
' checked="checked"'
:
''
?>
/>
<?=
gettext
(
"Redirect"
);
?>
<input
type=
"radio"
name=
"mode"
value=
"relay"
<?=
$pconfig
[
'mode'
]
==
'relay'
?
' checked="checked"'
:
''
?>
/>
<?=
gettext
(
"Relay"
);
?>
<select
name=
"mode"
id=
"mode"
>
<option
value=
"redirect"
<?=
$pconfig
[
'mode'
]
!=
'relay'
?
" selected=
\"
selected
\"
"
:
""
?>
>
<?=
gettext
(
"Redirect"
);
?>
</option>
<option
value=
"relay"
<?=
$pconfig
[
'mode'
]
==
'relay'
?
" selected=
\"
selected
\"
"
:
""
?>
>
<?=
gettext
(
"Relay"
);
?>
</option>
</select>
<div
class=
"hidden"
for=
"help_for_mode"
>
<strong>
<?=
gettext
(
"Redirect"
);
?>
</strong><br/>
<?=
gettext
(
"Redirections are translated to pf(4) rdr-to rules for stateful forwarding to a target host from a health-checked table on layer 3."
);
?>
<strong>
<?=
gettext
(
"Relay"
);
?>
</strong><br/>
<?=
gettext
(
"Relays allow application layer load balancing, TLS acceleration, and general purpose TCP proxying on layer 7."
);
?>
</div>
</td>
</tr>
<tr>
<tr
id=
"protocol"
>
<td><i
class=
"fa fa-info-circle text-muted"
></i>
<?=
gettext
(
"Relay Protocol"
);
?>
</td>
<td>
<select
name=
"relay_protocol"
>
...
...
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