mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/upnp: follow firmware-product changes in core
This commit is contained in:
+1
-1
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user