Skip to content

Commit 1e4f4a0

Browse files
luci-app-upnp: Preview wording changes for revised UCI config options
Signed-off-by: Self-Hosting-Group <[email protected]>
1 parent 0bb2811 commit 1e4f4a0

File tree

1 file changed

+9
-9
lines changed
  • applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp

1 file changed

+9
-9
lines changed

applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,26 +122,26 @@ return view.extend({
122122
o.rmempty = false;
123123

124124
s.taboption('general', form.Flag, 'enable_upnp', _('Enable UPnP IGD protocol')).default = '1'
125-
s.taboption('general', form.Flag, 'enable_natpmp', _('Enable PCP/NAT-PMP protocols')).default = '1'
125+
s.taboption('general', form.Flag, 'enable_pcp_pmp', _('Enable PCP/NAT-PMP protocols')).default = '1'
126126

127127
s.taboption('general', form.Flag, 'secure_mode', _('Enable secure mode'),
128-
_('Allow adding port maps only to requesting IP addresses')).default = '1'
128+
_('Allow adding port maps only to requesting IP addresses and deny PCP third-party option')).default = '1'
129129

130-
o = s.taboption('general', form.Flag, 'igdv1', _('Enable UPnP IGDv1 mode'),
131-
_('Advertise as UPnP IGDv1 device (no IPv6) instead of IGDv2'))
130+
o = s.taboption('general', form.ListValue, 'upnp_igd_compat', _('UPnP IGD compatiblity mode'))
132131
o.depends('enable_upnp', '1')
133-
o.default = '1'
132+
o.value('igdv1',_('IGDv1 (IPv4 only)'))
133+
o.value('igdv2',_('IGDv2'))
134134

135135
s.taboption('general', form.Flag, 'log_output', _('Enable additional logging'),
136136
_('Puts extra debugging information into the system log'))
137137

138-
o = s.taboption('general', form.Value, 'download', _('Download speed'),
139-
_('Value in KByte/s, informational only'))
138+
o = s.taboption('general', form.Value, 'download_kbps', _('Download speed'),
139+
_('Value in kbit/s, informational only'))
140140
o.depends('enable_upnp', '1')
141141
o.rmempty = true
142142

143-
o = s.taboption('general', form.Value, 'upload', _('Upload speed'),
144-
_('Value in KByte/s, informational only'))
143+
o = s.taboption('general', form.Value, 'upload_kbps', _('Upload speed'),
144+
_('Value in kbit/s, informational only'))
145145
o.depends('enable_upnp', '1')
146146
o.rmempty = true
147147

0 commit comments

Comments
 (0)