From 88eab032be7197dd87d0b4c9864af4b6b4fd820b Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sun, 18 Jan 2026 16:47:01 +0100 Subject: Add TUN protocol for inbound Introduces TUN protocol to inbound.js, including a new TunSettings class. Updates inbound form to support TUN protocol and adds a dedicated form template for TUN settings. Translation files are updated with TUN-related strings for all supported languages. --- web/html/form/inbound.html | 62 +++++++++++++++++++++++++++++------------ web/html/form/protocol/tun.html | 44 +++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+), 18 deletions(-) create mode 100644 web/html/form/protocol/tun.html (limited to 'web/html/form') diff --git a/web/html/form/inbound.html b/web/html/form/inbound.html index fdd381b0..8b59dc28 100644 --- a/web/html/form/inbound.html +++ b/web/html/form/inbound.html @@ -1,6 +1,7 @@ {{define "form/inbound"}} - + @@ -9,8 +10,10 @@ - - [[ p ]] + + [[ p + ]] @@ -28,7 +31,8 @@ - + @@ -41,29 +45,42 @@ - + - - {{ i18n "pages.inbounds.periodicTrafficReset.never" }} - {{ i18n "pages.inbounds.periodicTrafficReset.daily" }} - {{ i18n "pages.inbounds.periodicTrafficReset.weekly" }} - {{ i18n "pages.inbounds.periodicTrafficReset.monthly" }} + + {{ i18n + "pages.inbounds.periodicTrafficReset.never" }} + {{ i18n + "pages.inbounds.periodicTrafficReset.daily" }} + {{ i18n + "pages.inbounds.periodicTrafficReset.weekly" + }} + {{ i18n + "pages.inbounds.periodicTrafficReset.monthly" + }} @@ -71,16 +88,20 @@ - - @@ -126,6 +147,11 @@ {{template "form/wireguard"}} + + +