From f6bbde5f8a054cf9b7b190070e1b57f277dbaedc Mon Sep 17 00:00:00 2001 From: Xing-Kai Wang Date: Sun, 10 May 2026 23:59:55 +0800 Subject: [PATCH] luci-proto-openfortivpn: add realm parameter support Add a 'realm' field in the advanced tab so users can easily pass this parameter to the underlying netifd handler. Signed-off-by: Xing-Kai Wang --- .../htdocs/luci-static/resources/protocol/openfortivpn.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js b/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js index 8aa233cac8..e116ecbb73 100644 --- a/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js +++ b/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js @@ -173,5 +173,8 @@ return network.registerProtocol('openfortivpn', { o.dataype = 'ipaddr' o.optional = true; + o = s.taboption('advanced', form.Value, 'realm', _("Realm"), _("Optional. Specify the realm if your VPN gateway uses custom login portals.")); + o.optional = true; + } });