net/upnp: follow firmware-product changes in core

This commit is contained in:
Franco Fichtner
2018-09-16 23:30:17 +02:00
parent 08cc4770ba
commit 371d168bea
2 changed files with 3 additions and 3 deletions
+1 -1
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
@@ -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++) {