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
4169afd1
Commit
4169afd1
authored
Mar 07, 2017
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gwlb.inc) ipprotocol should be stored in gateway_item
parent
4f58e7f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
gwlb.inc
src/etc/inc/gwlb.inc
+1
-13
No files found.
src/etc/inc/gwlb.inc
View file @
4169afd1
...
...
@@ -667,14 +667,6 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive
}
$gateway
[
'dynamic'
]
=
true
;
}
}
else
{
/* getting this detection right is hard at this point because we still don't
* store the address family in the gateway item */
if
(
is_ipaddrv4
(
$gateway
[
'gateway'
]))
{
$gateway
[
'ipprotocol'
]
=
"inet"
;
}
elseif
(
is_ipaddrv6
(
$gateway
[
'gateway'
]))
{
$gateway
[
'ipprotocol'
]
=
"inet6"
;
}
}
if
(
isset
(
$gateway
[
'monitor_disable'
]))
{
...
...
@@ -694,12 +686,8 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive
/* entry has a default flag, use it */
if
(
isset
(
$gateway
[
'defaultgw'
]))
{
if
(
$gateway
[
'ipprotocol'
]
==
"inet"
)
{
$gateway
[
'defaultgw'
]
=
true
;
}
elseif
(
$gateway
[
'ipprotocol'
]
==
"inet6"
)
{
$gateway
[
'defaultgw'
]
=
true
;
}
}
/* include the gateway index as the attribute */
$gateway
[
'attribute'
]
=
$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