diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2020-11-01 02:08:12 +0100 |
---|---|---|
committer | Ansuel Smith <ansuelsmth@gmail.com> | 2020-11-01 02:08:12 +0100 |
commit | b01a394bded4dc2dd838ef579a80e12c4e23407b (patch) | |
tree | 818a3582e5fd7010d512c77bb8dce583966c698b /applications | |
parent | 1da9df837685b3a2afc80125d056e37198933533 (diff) |
luci-app-upnp: add stun support
STUN support has been added to upnp init but luci lacks support of it.
Fixes: #4544
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js b/applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js index 095078a4e2..aba63aa8cc 100644 --- a/applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js +++ b/applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js @@ -167,6 +167,17 @@ return view.extend({ o = s.taboption('advanced', form.Value, 'upnp_lease_file', _('UPnP lease file')) o.placeholder = '/var/run/miniupnpd.leases' + s.taboption('advanced', form.Flag, 'use_stun', _('Use STUN')) + + o = s.taboption('advanced', form.Value, 'stun_host ', _('STUN Host')) + o.depends('use_stun', '1'); + o.datatype = 'host' + + o = s.taboption('advanced', form.Value, 'stun_port ', _('STUN Port')) + o.depends('use_stun', '1'); + o.datatype = 'port' + o.placeholder = '0-65535' + s = m.section(form.GridSection, 'perm_rule', _('MiniUPnP ACLs'), _('ACLs specify which external ports may be redirected to which internal addresses and ports')) |