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
a20b5876
Commit
a20b5876
authored
Apr 07, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: fix style errors
parent
a1b6d04c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
SettingsController.php
...app/controllers/OPNsense/Proxy/Api/SettingsController.php
+3
-4
No files found.
src/opnsense/mvc/app/controllers/OPNsense/Proxy/Api/SettingsController.php
View file @
a20b5876
...
...
@@ -49,18 +49,17 @@ class SettingsController extends ApiControllerBase
$mdlProxy
=
new
Proxy
();
// Define array for selected interfaces
$selopt
=
A
rray
();
$selopt
=
a
rray
();
// Get ConfigObject
$configObj
=
Config
::
getInstance
()
->
object
();
// Iterate over all interfaces configuration
// TODO: replace for <interfaces> helper
foreach
(
$configObj
->
interfaces
->
children
()
as
$key
=>
$value
)
{
foreach
(
$configObj
->
interfaces
->
children
()
as
$key
=>
$value
)
{
// Check if interface is enabled, if tag is <enable/> treat as enabled.
if
(
isset
(
$value
->
enable
)
&&
(
$value
->
enable
!=
'0'
)
)
{
if
(
isset
(
$value
->
enable
)
&&
$value
->
enable
!=
'0'
)
{
// Check if interface has static ip
if
(
$value
->
ipaddr
!=
'dhcp'
)
{
if
(
$value
->
descr
==
''
)
{
$description
=
strtoupper
(
$key
);
// Use interface name as description if none is given
}
else
{
...
...
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