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
73b1d444
Commit
73b1d444
authored
Mar 10, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interfaces: small simplification for #1455
parent
1dabd53d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
if_group.inc
src/etc/inc/plugins.inc.d/if_group.inc
+1
-1
if_openvpn.inc
src/etc/inc/plugins.inc.d/if_openvpn.inc
+1
-1
interfaces_groups_edit.php
src/www/interfaces_groups_edit.php
+1
-1
No files found.
src/etc/inc/plugins.inc.d/if_group.inc
View file @
73b1d444
...
...
@@ -40,7 +40,7 @@ function if_group_interfaces()
$oc
[
'if'
]
=
$ifgen
[
'ifname'
];
$oc
[
'descr'
]
=
$ifgen
[
'ifname'
];
$oc
[
'virtual'
]
=
true
;
$oc
[
'type'
]
=
'
if
group'
;
$oc
[
'type'
]
=
'group'
;
$interfaces
[
$ifgen
[
'ifname'
]]
=
$oc
;
}
}
...
...
src/etc/inc/plugins.inc.d/if_openvpn.inc
View file @
73b1d444
...
...
@@ -79,7 +79,7 @@ function if_openvpn_interfaces()
$oic
=
array
(
'enable'
=>
true
);
$oic
[
'if'
]
=
'openvpn'
;
$oic
[
'descr'
]
=
'OpenVPN'
;
$oic
[
'type'
]
=
'
if
group'
;
$oic
[
'type'
]
=
'group'
;
$oic
[
'virtual'
]
=
true
;
$oic
[
'networks'
]
=
array
();
$interfaces
[
'openvpn'
]
=
$oic
;
...
...
src/www/interfaces_groups_edit.php
View file @
73b1d444
...
...
@@ -184,7 +184,7 @@ legacy_html_escape_form_data($pconfig);
<select
name=
"members[]"
multiple=
"multiple"
class=
"selectpicker"
data-size=
"5"
data-live-search=
"true"
>
<?php
foreach
(
legacy_config_get_interfaces
(
array
(
"enable"
=>
true
))
as
$ifn
=>
$ifdetail
)
:
if
(
!
empty
(
$ifdetail
[
'type'
])
&&
$ifdetail
[
'type'
]
==
'
if
group'
)
{
if
(
!
empty
(
$ifdetail
[
'type'
])
&&
$ifdetail
[
'type'
]
==
'group'
)
{
continue
;
}
?>
...
...
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