net/upnp: add newwanip hook

This could potentially disrupt operation for no apparent reason
since this wasn't included and asked for for a long time now.

PR: https://forum.opnsense.org/index.php?topic=36912.0
This commit is contained in:
Franco Fichtner
2023-11-24 11:00:20 +01:00
parent 0dec112d17
commit 8da84037c2
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
PLUGIN_NAME= upnp
PLUGIN_VERSION= 1.5
PLUGIN_REVISION= 4
PLUGIN_REVISION= 5
PLUGIN_DEPENDS= miniupnpd
PLUGIN_COMMENT= Universal Plug and Play Service
PLUGIN_MAINTAINER= franco@opnsense.org
@@ -88,7 +88,10 @@ function miniupnpd_stop()
function miniupnpd_configure()
{
return ['bootup' => ['miniupnpd_configure_do']];
return [
'bootup' => ['miniupnpd_configure_do'],
'newwanip' => ['miniupnpd_configure_do'],
];
}
function miniupnpd_uuid()