diff --git a/web/html/settings.html b/web/html/settings.html
index 26b936fa..e664e6ec 100644
--- a/web/html/settings.html
+++ b/web/html/settings.html
@@ -9,19 +9,20 @@
+ message='{{ i18n "secAlertTitle" }}' color="red" show-icon closable>
{{ i18n "secAlertConf" }}
-
+
-
+
@@ -31,17 +32,19 @@
- {{ i18n "pages.settings.save" }}
- {{ i18n "pages.settings.restartPanel" }}
+ {{ i18n
+ "pages.settings.save" }}
+ {{ i18n
+ "pages.settings.restartPanel" }}
-
+
+ message='{{ i18n "pages.settings.infoDesc" }}' show-icon>
@@ -132,7 +135,8 @@
fragment: {
packets: "tlshello",
length: "100-200",
- interval: "10-20"
+ interval: "10-20",
+ maxSplit: "300-400"
}
},
streamSettings: {
@@ -381,11 +385,11 @@
},
computed: {
ldapInboundTagList: {
- get: function() {
+ get: function () {
const csv = this.allSetting.ldapInboundTags || "";
return csv.length ? csv.split(',').map(s => s.trim()).filter(Boolean) : [];
},
- set: function(list) {
+ set: function (list) {
this.allSetting.ldapInboundTags = Array.isArray(list) ? list.join(',') : '';
}
},
@@ -425,6 +429,16 @@
}
}
},
+ fragmentMaxSplit: {
+ get: function () { return this.fragment ? JSON.parse(this.allSetting.subJsonFragment).settings.fragment.maxSplit : ""; },
+ set: function (v) {
+ if (v != "") {
+ newFragment = JSON.parse(this.allSetting.subJsonFragment);
+ newFragment.settings.fragment.maxSplit = v;
+ this.allSetting.subJsonFragment = JSON.stringify(newFragment);
+ }
+ }
+ },
noises: {
get() {
return this.allSetting?.subJsonNoises != "";
diff --git a/web/html/settings/panel/subscription/json.html b/web/html/settings/panel/subscription/json.html
index ff924352..e8642305 100644
--- a/web/html/settings/panel/subscription/json.html
+++ b/web/html/settings/panel/subscription/json.html
@@ -5,13 +5,10 @@
{{ i18n "pages.settings.subPath"}}
{{ i18n "pages.settings.subPathDesc"}}
- { p = p || '/'; if (!p.startsWith('/')) p='/' + p; if (!p.endsWith('/')) p += '/'; return p.replace(/\/+/g,'/'); })(allSetting.subJsonPath)"
- placeholder="/json/"
- >
+ placeholder="/json/">
@@ -53,6 +50,12 @@
+
+ MaxSplit
+
+
+
+
@@ -74,7 +77,8 @@
updateNoiseType(index, value)">
-
+
[[ p ]]