From 7acbdb5c0720efa6665fb399b6dbd5bc6ad31087 Mon Sep 17 00:00:00 2001 From: Vladislav Grigoryev Date: Sat, 14 Oct 2023 13:58:37 +0300 Subject: [PATCH] luci-proto-sstp: add support for custom port Add support for connecting to a custom SSTP port. See also: https://github.com/openwrt/packages/pull/22405 Signed-off-by: Vladislav Grigoryev --- .../htdocs/luci-static/resources/protocol/sstp.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/protocols/luci-proto-sstp/htdocs/luci-static/resources/protocol/sstp.js b/protocols/luci-proto-sstp/htdocs/luci-static/resources/protocol/sstp.js index 6a23407b5095..f58f553c36a0 100644 --- a/protocols/luci-proto-sstp/htdocs/luci-static/resources/protocol/sstp.js +++ b/protocols/luci-proto-sstp/htdocs/luci-static/resources/protocol/sstp.js @@ -41,6 +41,10 @@ return network.registerProtocol('sstp', { o = s.taboption('general', form.Value, 'server', _('SSTP Server')); o.datatype = 'host'; + o = s.taboption('general', form.Value, 'port', _('SSTP Port')); + o.placeholder = '443'; + o.datatype = 'port'; + o = s.taboption('general', form.Value, 'username', _('PAP/CHAP username')); o = s.taboption('general', form.Value, 'password', _('PAP/CHAP password'));