Update luci-app-upnp.patch

This commit is contained in:
kiddin9 2026-06-01 00:11:29 +08:00 committed by GitHub
parent d02c3e6674
commit e30daa4440
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -253,7 +253,7 @@ index 955e1c45f5f8..494172864e35 100644
o.rmempty = false;
o = s.taboption('setup', form.Flag, 'enable_upnp', _('Enable UPnP IGD protocol'));
@@ -152,86 +163,104 @@ return view.extend({
@@ -152,89 +163,107 @@ return view.extend({
o.default = '1';
o.rmempty = false;
o.depends('enable_upnp', '1');
@ -287,7 +287,10 @@ index 955e1c45f5f8..494172864e35 100644
+ o.depends('use_stun', '1');
+ o.retain = true;
o = s.taboption('advanced', form.Flag, 'secure_mode', _('Enable secure mode'),
s.taboption('advanced', form.Flag, 'force_forwarding', _('Force forwarding'),
_('Force forwarding ports even the network is behind NAT'));
o = s.taboption('advanced', form.Flag, 'secure_mode', _('Enable secure mode'),
_('Allow adding port maps for requesting IP addresses only'));
o.default = '1';
o.depends('enable_upnp', '1');