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
14b3fa5c
Commit
14b3fa5c
authored
Apr 01, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: fix a few `Illegal string offset' warnings
parent
b0dac383
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
gwlb.inc
src/etc/inc/gwlb.inc
+2
-2
interfaces.inc
src/etc/inc/interfaces.inc
+1
-1
system.inc
src/etc/inc/system.inc
+1
-1
No files found.
src/etc/inc/gwlb.inc
View file @
14b3fa5c
...
...
@@ -445,7 +445,7 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive
$i
=
-
1
;
/* Process/add all the configured gateways. */
if
(
is
_array
(
$config
[
'gateways'
][
'gateway_item'
]))
{
if
(
is
set
(
$config
[
'gateways'
][
'gateway_item'
]))
{
foreach
(
$config
[
'gateways'
][
'gateway_item'
]
as
$gateway
)
{
/* Increment it here to do not skip items */
$i
++
;
...
...
@@ -796,7 +796,7 @@ function return_gateway_groups_array() {
fixup_default_gateway
(
"inet"
,
$gateways_status
,
$gateways_arr
);
fixup_default_gateway
(
"inet6"
,
$gateways_status
,
$gateways_arr
);
}
if
(
is
_array
(
$config
[
'gateways'
][
'gateway_group'
]))
{
if
(
is
set
(
$config
[
'gateways'
][
'gateway_group'
]))
{
$carplist
=
get_configured_carp_interface_list
();
foreach
(
$config
[
'gateways'
][
'gateway_group'
]
as
$group
)
{
/* create array with group gateways members separated by tier */
...
...
src/etc/inc/interfaces.inc
View file @
14b3fa5c
...
...
@@ -185,7 +185,7 @@ function interface_netgraph_needed($interface = "wan") {
}
if
(
$found
==
false
)
{
$realif
=
get_real_interface
(
$interface
);
if
(
is
_array
(
$config
[
'ppps'
][
'ppp'
])
&&
coun
t
(
$config
[
'ppps'
][
'ppp'
]))
{
if
(
is
se
t
(
$config
[
'ppps'
][
'ppp'
]))
{
foreach
(
$config
[
'ppps'
][
'ppp'
]
as
$pppid
=>
$ppp
)
{
/* This if block doesn't do anything. It can be deleted.
...
...
src/etc/inc/system.inc
View file @
14b3fa5c
...
...
@@ -387,7 +387,7 @@ function system_routing_configure($interface = '')
$interfacegwv6
=
""
;
$foundgwv6
=
false
;
/* tack on all the hard defined gateways as well */
if
(
is
_array
(
$config
[
'gateways'
][
'gateway_item'
]))
{
if
(
is
set
(
$config
[
'gateways'
][
'gateway_item'
]))
{
array_map
(
'unlink'
,
glob
(
'/tmp/*_defaultgw{,v6}'
,
GLOB_BRACE
));
foreach
(
$config
[
'gateways'
][
'gateway_item'
]
as
$gateway
)
{
if
(
isset
(
$gateway
[
'defaultgw'
]))
{
...
...
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