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:
authorShishkevich D. <135337715+shishkevichd@users.noreply.github.com>2025-04-06 12:40:33 +0300
committerGitHub <noreply@github.com>2025-04-06 12:40:33 +0300
commitbea19a263db88fef44b4356082b199fbfcc39a25 (patch)
treea111e9328c6273ad9721118238c40cf3004f72a9 /web/html/form/stream/stream_sockopt.html
parent878e0d02cd01a045f4f32464124c59e24f98aedd (diff)
Code refactoring (#2865)
* refactor: use vue inline styles in entire application * refactor: setting row in dashboard page * refactor: use blob for download file in text modal * refactor: move all html templates in `web/html` folder * refactor: `DeviceUtils` -> `MediaQueryMixin` The transition to mixins has been made, as they can update themselves. * chore: pretty right buttons in `outbounds` tab in xray settings * refactor: add translations for system status * refactor: adjust gutter spacing in setting list item * refactor: use native `a-input-password` for password field * chore: return old system status with new translations * chore: add missing translation
Diffstat (limited to 'web/html/form/stream/stream_sockopt.html')
-rw-r--r--web/html/form/stream/stream_sockopt.html66
1 files changed, 66 insertions, 0 deletions
diff --git a/web/html/form/stream/stream_sockopt.html b/web/html/form/stream/stream_sockopt.html
new file mode 100644
index 00000000..4480594a
--- /dev/null
+++ b/web/html/form/stream/stream_sockopt.html
@@ -0,0 +1,66 @@
+{{define "form/streamSockopt"}}
+<a-divider :style="{ margin: '5px 0 0' }"></a-divider>
+<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
+ <a-form-item label="Sockopt">
+ <a-switch v-model="inbound.stream.sockoptSwitch"></a-switch>
+ </a-form-item>
+ <template v-if="inbound.stream.sockoptSwitch">
+ <a-form-item label="Route Mark">
+ <a-input-number v-model.number="inbound.stream.sockopt.mark" :min="0"></a-input-number>
+ </a-form-item>
+ <a-form-item label="TCP Keep Alive Interval">
+ <a-input-number v-model.number="inbound.stream.sockopt.tcpKeepAliveInterval" :min="0"></a-input-number>
+ </a-form-item>
+ <a-form-item label="TCP Keep Alive Idle">
+ <a-input-number v-model.number="inbound.stream.sockopt.tcpKeepAliveIdle" :min="0"></a-input-number>
+ </a-form-item>
+ <a-form-item label="TCP Max Seg">
+ <a-input-number v-model.number="inbound.stream.sockopt.tcpMaxSeg" :min="0"></a-input-number>
+ </a-form-item>
+ <a-form-item label="TCP User Timeout">
+ <a-input-number v-model.number="inbound.stream.sockopt.tcpUserTimeout" :min="0"></a-input-number>
+ </a-form-item>
+ <a-form-item label="TCP Window Clamp">
+ <a-input-number v-model.number="inbound.stream.sockopt.tcpWindowClamp" :min="0"></a-input-number>
+ </a-form-item>
+ <a-form-item label="Proxy Protocol">
+ <a-switch v-model="inbound.stream.sockopt.acceptProxyProtocol"></a-switch>
+ </a-form-item>
+ <a-form-item label="TCP Fast Open">
+ <a-switch v-model.trim="inbound.stream.sockopt.tcpFastOpen"></a-switch>
+ </a-form-item>
+ <a-form-item label="Multipath TCP">
+ <a-switch v-model.trim="inbound.stream.sockopt.tcpMptcp"></a-switch>
+ </a-form-item>
+ <a-form-item label="Penetrate">
+ <a-switch v-model.trim="inbound.stream.sockopt.penetrate"></a-switch>
+ </a-form-item>
+ <a-form-item label="V6 Only">
+ <a-switch v-model.trim="inbound.stream.sockopt.V6Only"></a-switch>
+ </a-form-item>
+ <a-form-item label='Domain Strategy'>
+ <a-select v-model="inbound.stream.sockopt.domainStrategy" :style="{ width: '50%' }" :dropdown-class-name="themeSwitcher.currentTheme">
+ <a-select-option v-for="key in DOMAIN_STRATEGY_OPTION" :value="key">[[ key ]]</a-select-option>
+ </a-select>
+ </a-form-item>
+ <a-form-item label='TCP Congestion'>
+ <a-select v-model="inbound.stream.sockopt.tcpcongestion" :style="{ width: '50%' }" :dropdown-class-name="themeSwitcher.currentTheme">
+ <a-select-option v-for="key in TCP_CONGESTION_OPTION" :value="key">[[ key ]]</a-select-option>
+ </a-select>
+ </a-form-item>
+ <a-form-item label="TProxy">
+ <a-select v-model="inbound.stream.sockopt.tproxy" :style="{ width: '50%' }" :dropdown-class-name="themeSwitcher.currentTheme">
+ <a-select-option value="off">Off</a-select-option>
+ <a-select-option value="redirect">Redirect</a-select-option>
+ <a-select-option value="tproxy">TProxy</a-select-option>
+ </a-select>
+ </a-form-item>
+ <a-form-item label="Dialer Proxy">
+ <a-input v-model="inbound.stream.sockopt.dialerProxy"></a-input>
+ </a-form-item>
+ <a-form-item label="Interface Name">
+ <a-input v-model="inbound.stream.sockopt.interfaceName"></a-input>
+ </a-form-item>
+ </template>
+</a-form>
+{{end}}