diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-11 11:37:52 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-11 11:37:52 +0300 |
| commit | 102864525cab2b8dc443dcc8ebf9e72798a79d64 (patch) | |
| tree | 21300d2048700ae935da5c7868b436e39e21bc80 /web/html | |
| parent | e6254e23f29d1c98173378acf0051b789f595289 (diff) | |
[xray outbound] add sockopt
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html')
| -rw-r--r-- | web/html/xui/form/outbound.html | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html index b6874240..2f2a5215 100644 --- a/web/html/xui/form/outbound.html +++ b/web/html/xui/form/outbound.html @@ -351,7 +351,7 @@ <a-radio-group v-model="outbound.stream.security" button-style="solid"> <a-radio-button value="none">{{ i18n "none" }}</a-radio-button> <a-radio-button value="tls">TLS</a-radio-button> - <a-radio-button v-if="outbound.canEnableReality()" value="reality">REALITY</a-radio-button> + <a-radio-button v-if="outbound.canEnableReality()" value="reality">Reality</a-radio-button> </a-radio-group> </a-form-item> <template v-if="outbound.stream.isTls"> @@ -399,6 +399,30 @@ </a-form-item> </template> </template> + +<!-- sockopt settings --> +<template v-if="outbound.canEnableStream()"> + <a-form-item label="Sockopts"> + <a-switch v-model="outbound.stream.sockoptSwitch"></a-switch> + </a-form-item> + <template v-if="outbound.stream.sockoptSwitch"> + <a-form-item label="Dialer Proxy"> + <a-select v-model="outbound.stream.sockopt.dialerProxy" :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select-option v-for="tag in ['', ...outModal.tags]" :value="tag">[[ tag ]]</a-select-option> + </a-select> + </a-form-item> + <a-form-item label="TCP Fast Open"> + <a-switch v-model="outbound.stream.sockopt.tcpFastOpen"></a-switch> + </a-form-item> + <a-form-item label="Keep Alive Interval"> + <a-input-number v-model="outbound.stream.sockopt.tcpKeepAliveInterval" :min="0"></a-input-number> + </a-form-item> + <a-form-item label="TCP No-Delay"> + <a-switch v-model="outbound.stream.sockopt.tcpNoDelay"></a-switch> + </a-form-item> + </template> +</template> + </a-form> </a-tab-pane> <a-tab-pane key="2" tab="JSON" force-render="true"> |
