diff options
author | Josh Galvez (zevlag) <josh@zevlag.com> | 2016-03-11 17:01:29 -0700 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-06-30 01:10:58 -0500 |
commit | abbd41504f21fa390bae54458156f92f8f683933 (patch) | |
tree | 56ac01d247e555fc6058ebd22b309ca71ad27020 /src/usr | |
parent | 421a4bdba639485ec5c4735ec0cafd4f3f21aa8c (diff) | |
download | pfsense-abbd41504f21fa390bae54458156f92f8f683933.zip pfsense-abbd41504f21fa390bae54458156f92f8f683933.tar.gz |
Make presentation_url customizable
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/pkg/miniupnpd.inc | 4 | ||||
-rw-r--r-- | src/usr/local/pkg/miniupnpd.xml | 6 |
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); |