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
e24916f0
Commit
e24916f0
authored
Jul 27, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: fix a few warings from recent crash reports
parent
052f5c10
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
filter.inc
src/etc/inc/filter.inc
+1
-1
interfaces.inc
src/etc/inc/interfaces.inc
+1
-1
services.inc
src/etc/inc/services.inc
+1
-1
services_dnsmasq.php
src/www/services_dnsmasq.php
+1
-1
No files found.
src/etc/inc/filter.inc
View file @
e24916f0
...
...
@@ -3117,7 +3117,7 @@ EOD;
* interface in question to avoid problems with complicated routing
* topologies
*/
if
(
isset
(
$config
[
'filter'
][
'bypassstaticroutes'
])
&&
is
_array
(
$config
[
'staticroutes'
][
'route'
])
&&
count
(
$config
[
'staticroutes'
][
'route'
]))
{
if
(
isset
(
$config
[
'filter'
][
'bypassstaticroutes'
])
&&
is
set
(
$config
[
'staticroutes'
][
'route'
])
&&
count
(
$config
[
'staticroutes'
][
'route'
]))
{
$ipfrules
.=
"# Add rules to bypass firewall rules for static routes
\n
"
;
foreach
(
get_staticroutes
()
as
$route
)
{
$friendly
=
$GatewaysList
[
$route
[
'gateway'
]][
'friendlyiface'
];
...
...
src/etc/inc/interfaces.inc
View file @
e24916f0
...
...
@@ -1669,7 +1669,7 @@ default:
EOD;
$setdefaultgw
=
false
;
$founddefaultgw
=
false
;
if
(
is
_array
(
$config
[
'gateways'
][
'gateway_item'
]))
{
if
(
is
set
(
$config
[
'gateways'
][
'gateway_item'
]))
{
foreach
(
$config
[
'gateways'
][
'gateway_item'
]
as
$gateway
)
{
if
(
$interface
==
$gateway
[
'interface'
]
&&
isset
(
$gateway
[
'defaultgw'
]))
{
$setdefaultgw
=
true
;
...
...
src/etc/inc/services.inc
View file @
e24916f0
...
...
@@ -785,7 +785,7 @@ EOD;
// Handle option, number rowhelper values
$dhcpdconf
.=
"
\n
"
;
if
(
$dhcpifconf
[
'numberoptions'
][
'item'
]
)
{
if
(
isset
(
$dhcpifconf
[
'numberoptions'
][
'item'
])
)
{
foreach
(
$dhcpifconf
[
'numberoptions'
][
'item'
]
as
$itemidx
=>
$item
)
{
if
(
empty
(
$item
[
'type'
])
||
$item
[
'type'
]
==
"text"
)
$dhcpdconf
.=
" option custom-
{
$dhcpif
}
-
{
$itemidx
}
\"
{
$item
[
'value'
]
}
\"
;
\n
"
;
...
...
src/www/services_dnsmasq.php
View file @
e24916f0
...
...
@@ -399,7 +399,7 @@ function show_advanced_dns() {
</tr>
</table>
</tr>
<?php
if
(
$hostent
[
'aliases'
][
'item'
]
&&
is_array
(
$hostent
[
'aliases'
][
'item'
]))
:
?>
<?php
if
(
isset
(
$hostent
[
'aliases'
][
'item'
]))
:
?>
<?php
foreach
(
$hostent
[
'aliases'
][
'item'
]
as
$alias
)
:
?>
<tr>
<td
class=
"listlr"
ondblclick=
"document.location='services_dnsmasq_edit.php?id=
<?=
$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