summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-11-01 17:24:29 +0100
committerGitHub <noreply@github.com>2020-11-01 17:24:29 +0100
commita7eaf92454619305435d3abd899c99834d3f19ec (patch)
treedef4d6e32a8fb872d98dda2ee44dc0153b282664 /applications
parent78645e7efe0e039e7a69c868561a395f010d7523 (diff)
parentb01a394bded4dc2dd838ef579a80e12c4e23407b (diff)
Merge pull request #4562 from Ansuel/upnp-stun
luci-app-upnp: add stun support
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js11
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 095078a4e..aba63aa8c 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'))