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
aa7e5719
Commit
aa7e5719
authored
Mar 10, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
work in progress proxy feature
parent
3e3548d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
SettingsController.php
...app/controllers/OPNsense/Proxy/Api/SettingsController.php
+4
-0
General.xml
src/opnsense/mvc/app/models/OPNsense/Proxy/General.xml
+3
-0
index.volt
src/opnsense/mvc/app/views/OPNsense/Proxy/index.volt
+6
-0
No files found.
src/opnsense/mvc/app/controllers/OPNsense/Proxy/Api/SettingsController.php
View file @
aa7e5719
...
...
@@ -47,6 +47,10 @@ class SettingsController extends ApiControllerBase
$result
=
array
();
if
(
$this
->
request
->
isGet
())
{
$mdlGeneral
=
new
General
();
$selopt
=
array
(
"lan"
=>
"LAN"
,
"wan"
=>
"WAN"
);
$mdlGeneral
->
interfaces
->
setSelectOptions
(
$selopt
);
$result
[
'general'
]
=
$mdlGeneral
->
getNodes
();
}
...
...
src/opnsense/mvc/app/models/OPNsense/Proxy/General.xml
View file @
aa7e5719
...
...
@@ -8,6 +8,9 @@
<default>
0
</default>
<Required>
Y
</Required>
</enabled>
<interfaces
type=
"CSVListField"
>
<Required>
N
</Required>
</interfaces>
<port
type=
"IntegerField"
>
<default>
3128
</default>
<MinimumValue>
1
</MinimumValue>
...
...
src/opnsense/mvc/app/views/OPNsense/Proxy/index.volt
View file @
aa7e5719
...
...
@@ -58,6 +58,12 @@
'help':'test'
])
}}
{{ partial("layout_partials/form_input_tr",
['id': 'general.interfaces',
'label':'interfaces',
'type':'select_multiple'
])
}}
{{ partial("layout_partials/form_input_tr",
['id': 'general.port',
'label':'port',
...
...
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