net/upnp: default to IDGv1 when not yet set

This commit is contained in:
Franco Fichtner
2025-12-03 12:52:53 +01:00
parent 91ebb21622
commit 187246adc4
@@ -260,7 +260,7 @@ function miniupnpd_configure_do($verbose = false)
// When building the daemon with UPnP IGDv2, infinite (IGDv1 only) lease duration port maps are reduced
// to 7d, following the IGDv2 standard. Disabling it at runtime allows IGDv2-incompatible clients
if ($upnp_config['upnp_igd_compat'] == 'igdv1') {
if (($upnp_config['upnp_igd_compat'] ?? 'igdv1') == 'igdv1') {
$config_text .= "force_igd_desc_v1=yes\n";
}