diff --git a/web/html/xui/form/client.html b/web/html/xui/form/client.html
index 070b962ce0..01d96c738e 100644
--- a/web/html/xui/form/client.html
+++ b/web/html/xui/form/client.html
@@ -104,7 +104,7 @@
-
+
{{ i18n "none" }}
[[ key ]]
diff --git a/web/html/xui/form/reality_settings.html b/web/html/xui/form/reality_settings.html
new file mode 100644
index 0000000000..19804e17cb
--- /dev/null
+++ b/web/html/xui/form/reality_settings.html
@@ -0,0 +1,48 @@
+{{define "form/realitySettings"}}
+
+
+
+
+
+
+
+
+
+ [[ key ]]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ i18n "reset" }}
+ Short IDs
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Get New Cert
+
+
+{{end}}
\ No newline at end of file
diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html
index 97b23ef6a7..6c2f4a675b 100644
--- a/web/html/xui/form/tls_settings.html
+++ b/web/html/xui/form/tls_settings.html
@@ -34,16 +34,19 @@
-
+
[[ key ]]
-
+
[[ key ]]
-
+
None
[[ key ]]
@@ -71,8 +74,10 @@
{{ i18n "pages.inbounds.certificatePath" }}
{{ i18n "pages.inbounds.certificateContent" }}
-
-
+
+
@@ -82,7 +87,8 @@
- {{ i18n "pages.inbounds.setDefaultCert" }}
+
+ {{ i18n "pages.inbounds.setDefaultCert" }}
@@ -111,104 +117,13 @@
-
-
-
-
-
-
- [[ alpn ]]
-
-
-
-
-
-
-
-
- {{ i18n "pages.inbounds.certificatePath" }}
- {{ i18n "pages.inbounds.certificateContent" }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.inbounds.setDefaultCert" }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [[ key ]]
-
-
-
+
+ {{template "form/xtlsSettings"}}
-
-
-
-
-
-
-
-
- [[ key ]]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n "reset" }}
- Short IDs
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Get New Cert
-
+ {{template "form/realitySettings"}}
-{{end}}
+{{end}}
\ No newline at end of file
diff --git a/web/html/xui/form/xtls_settings.html b/web/html/xui/form/xtls_settings.html
new file mode 100644
index 0000000000..e6b88b4f01
--- /dev/null
+++ b/web/html/xui/form/xtls_settings.html
@@ -0,0 +1,58 @@
+{{define "form/xtlsSettings"}}
+
+
+
+
+
+
+ [[ alpn ]]
+
+
+
+
+
+
+
+
+ {{ i18n "pages.inbounds.certificatePath" }}
+ {{ i18n "pages.inbounds.certificateContent" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ i18n "pages.inbounds.setDefaultCert" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [[ key ]]
+
+
+
+
+{{end}}
\ No newline at end of file