summaryrefslogtreecommitdiffstats
path: root/src/usr/local/pkg
diff options
context:
space:
mode:
authorJosh Galvez (zevlag) <josh@zevlag.com>2016-03-11 17:01:29 -0700
committerJosh Galvez (zevlag) <josh@zevlag.com>2016-03-11 17:01:29 -0700
commitc3a74b4e2b0fdc34faf1d69887f392b61a3b310f (patch)
tree3b8909cff37a16f06e08401c6bf4fae95a6edc44 /src/usr/local/pkg
parent74d0b2c97dbddef629ab9a678d1a5cdd8b2cf887 (diff)
downloadpfsense-c3a74b4e2b0fdc34faf1d69887f392b61a3b310f.zip
pfsense-c3a74b4e2b0fdc34faf1d69887f392b61a3b310f.tar.gz
Make presentation_url customizable
Diffstat (limited to 'src/usr/local/pkg')
-rw-r--r--src/usr/local/pkg/miniupnpd.inc4
-rw-r--r--src/usr/local/pkg/miniupnpd.xml6
2 files changed, 9 insertions, 1 deletions
diff --git a/src/usr/local/pkg/miniupnpd.inc b/src/usr/local/pkg/miniupnpd.inc
index ecf187b..4a132dd 100644
--- a/src/usr/local/pkg/miniupnpd.inc
+++ b/src/usr/local/pkg/miniupnpd.inc
@@ -228,7 +228,9 @@
$config_text .= "secure_mode=yes\n";
/* set webgui url */
- if (!empty($config['system']['webgui']['protocol'])) {
+ if (!empty($upnp_config['presentationurl'])){
+ $config_text .= "presentation_url=" . $upnp_config['presentationurl'] . "\n";
+ } elseif (!empty($config['system']['webgui']['protocol'])) {
$config_text .= "presentation_url={$config['system']['webgui']['protocol']}://{$webgui_ip}";
if (!empty($config['system']['webgui']['port'])) {
$config_text .= ":{$config['system']['webgui']['port']}";
diff --git a/src/usr/local/pkg/miniupnpd.xml b/src/usr/local/pkg/miniupnpd.xml
index 80034ea..6271b91 100644
--- a/src/usr/local/pkg/miniupnpd.xml
+++ b/src/usr/local/pkg/miniupnpd.xml
@@ -127,6 +127,12 @@
</rowhelperfield>
</rowhelper>
</field>
+ <field>
+ <fielddescr>Custom presentation URL</fielddescr>
+ <fieldname>presentationurl</fieldname>
+ <type>input</type>
+ <description>If left blank the default value of the WebGUI of this firewall will be used.</description>
+ </field>
</fields>
<custom_php_command_before_form>
before_form_miniupnpd($pkg);
OpenPOWER on IntegriCloud