Skip to content

Commit

Permalink
net/upnp: add default lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Mar 11, 2017
1 parent 5718055 commit 5d5804b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/upnp/src/etc/inc/plugins.inc.d/miniupnpd.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5d5804b

Please sign in to comment.