mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net/upnp: small version info change from master
This commit is contained in:
parent
afd43c019e
commit
bc2bb2b56c
2 changed files with 3 additions and 3 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue