Skip to content

Commit

Permalink
net/upnp: add newwanip hook
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fichtner committed Nov 24, 2023
1 parent 0dec112 commit 8da8403
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/upnp/Makefile
@@ -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
Expand Down
5 changes: 4 additions & 1 deletion net/upnp/src/etc/inc/plugins.inc.d/miniupnpd.inc
Expand Up @@ -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()
Expand Down

0 comments on commit 8da8403

Please sign in to comment.