Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2026-04-20 19:02:39 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2026-04-20 19:02:39 +0300
commiteb16cca551a5880c9567b4d0a0d5fe5ca18b1c21 (patch)
treece810e72b6fe06e2f17b4509cd82ddb54131b55f /web/html/form/outbound.html
parentaef0503f8f6cb43faf2583e6ac546623d80f8434 (diff)
Add ipsBlocked to Freedom
Expose an ipsBlocked array on Outbound.FreedomSettings and wire it into the outbound form. The constructor now defaults fragment to {} and noises/ipsBlocked to arrays for robustness; fromJson/toJson handle ipsBlocked and omit it when empty. The outbound HTML adds a tag-style <a-select> bound to outbound.settings.ipsBlocked (with comma tokenization and placeholder) so users can enter IP/CIDR/geoip entries.
Diffstat (limited to 'web/html/form/outbound.html')
-rw-r--r--web/html/form/outbound.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/web/html/form/outbound.html b/web/html/form/outbound.html
index fe76b518..f4cb6467 100644
--- a/web/html/form/outbound.html
+++ b/web/html/form/outbound.html
@@ -51,6 +51,17 @@
<a-form-item label="Redirect">
<a-input v-model="outbound.settings.redirect"></a-input>
</a-form-item>
+ <a-form-item label="IPs Blocked">
+ <a-select
+ mode="tags"
+ v-model="outbound.settings.ipsBlocked"
+ :style="{ width: '100%' }"
+ :dropdown-class-name="themeSwitcher.currentTheme"
+ :token-separators="[',']"
+ placeholder="IP/CIDR/geoip:*/ext:*"
+ >
+ </a-select>
+ </a-form-item>
<a-form-item label="Fragment">
<a-switch
:checked="Object.keys(outbound.settings.fragment).length >0"