net/upnp: small version info change from master

This commit is contained in:
Franco Fichtner 2018-09-22 11:42:04 +02:00
parent afd43c019e
commit bc2bb2b56c
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
PLUGIN_NAME= upnp
PLUGIN_VERSION= 1.2
PLUGIN_REVISION= 1
PLUGIN_REVISION= 2
PLUGIN_DEPENDS= miniupnpd
PLUGIN_COMMENT= Universal Plug and Play Service
PLUGIN_MAINTAINER= franco@opnsense.org

View file

@ -98,7 +98,7 @@ function miniupnpd_uuid()
function miniupnpd_configure_do($verbose = false)
{
global $config;
global $config, $g;
miniupnpd_stop();
@ -194,7 +194,7 @@ function miniupnpd_configure_do($verbose = false)
$config_text .= "serial=".strtoupper(substr(miniupnpd_uuid(), 0, 8))."\n";
/* set model number */
$config_text .= "model_number=".file_get_contents("/usr/local/opnsense/version/opnsense")."\n";
$config_text .= "model_number={$g['product_version']}\n";
/* upnp access restrictions */
for ($i=1; $i<=4; $i++) {