mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net/upnp: add default lifetimes
PR: https://forum.opnsense.org/index.php?topic=4766.0
This commit is contained in:
parent
5718055942
commit
5d5804bae4
1 changed files with 4 additions and 0 deletions
|
|
@ -211,6 +211,10 @@ function miniupnpd_configure_do($verbose = false)
|
|||
$config_text .= "enable_upnp=" . ( $upnp_config['enable_upnp'] ? "yes\n" : "no\n" );
|
||||
$config_text .= "enable_natpmp=" . ( $upnp_config['enable_natpmp'] ? "yes\n" : "no\n" );
|
||||
|
||||
/* configure default lifetimes */
|
||||
$config_text .= "min_lifetime=120\n";
|
||||
$config_text .= "max_lifetime=86400\n";
|
||||
|
||||
/* write out the configuration */
|
||||
file_put_contents('/var/etc/miniupnpd.conf', $config_text);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue