2023-08-26 12:09:18 +00:00
|
|
|
{{define "form/streamSockopt"}}
|
2025-04-02 11:35:40 +00:00
|
|
|
<a-divider :style="{ margin: '5px 0 0' }"></a-divider>
|
2023-12-13 15:57:36 +00:00
|
|
|
<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
|
2024-05-22 16:35:46 +00:00
|
|
|
<a-form-item label="Sockopt">
|
2023-08-26 12:09:18 +00:00
|
|
|
<a-switch v-model="inbound.stream.sockoptSwitch"></a-switch>
|
|
|
|
</a-form-item>
|
2023-12-13 15:57:36 +00:00
|
|
|
<template v-if="inbound.stream.sockoptSwitch">
|
2024-05-24 07:57:14 +00:00
|
|
|
<a-form-item label="Route Mark">
|
2025-01-05 19:41:56 +00:00
|
|
|
<a-input-number v-model.number="inbound.stream.sockopt.mark" :min="0"></a-input-number>
|
2024-05-24 07:57:14 +00:00
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label="TCP Keep Alive Interval">
|
2025-01-05 19:41:56 +00:00
|
|
|
<a-input-number v-model.number="inbound.stream.sockopt.tcpKeepAliveInterval" :min="0"></a-input-number>
|
2024-05-24 07:57:14 +00:00
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label="TCP Keep Alive Idle">
|
2025-01-05 19:41:56 +00:00
|
|
|
<a-input-number v-model.number="inbound.stream.sockopt.tcpKeepAliveIdle" :min="0"></a-input-number>
|
2024-05-24 07:57:14 +00:00
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label="TCP Max Seg">
|
2025-01-05 19:41:56 +00:00
|
|
|
<a-input-number v-model.number="inbound.stream.sockopt.tcpMaxSeg" :min="0"></a-input-number>
|
2024-05-24 07:57:14 +00:00
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label="TCP User Timeout">
|
2025-01-05 19:41:56 +00:00
|
|
|
<a-input-number v-model.number="inbound.stream.sockopt.tcpUserTimeout" :min="0"></a-input-number>
|
2024-05-24 07:57:14 +00:00
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label="TCP Window Clamp">
|
2025-01-05 19:41:56 +00:00
|
|
|
<a-input-number v-model.number="inbound.stream.sockopt.tcpWindowClamp" :min="0"></a-input-number>
|
2024-05-24 07:57:14 +00:00
|
|
|
</a-form-item>
|
2024-05-22 16:35:46 +00:00
|
|
|
<a-form-item label="Proxy Protocol">
|
2023-12-13 15:57:36 +00:00
|
|
|
<a-switch v-model="inbound.stream.sockopt.acceptProxyProtocol"></a-switch>
|
|
|
|
</a-form-item>
|
2024-01-09 09:10:40 +00:00
|
|
|
<a-form-item label="TCP Fast Open">
|
2023-12-13 15:57:36 +00:00
|
|
|
<a-switch v-model.trim="inbound.stream.sockopt.tcpFastOpen"></a-switch>
|
|
|
|
</a-form-item>
|
2024-05-24 07:57:14 +00:00
|
|
|
<a-form-item label="Multipath TCP">
|
|
|
|
<a-switch v-model.trim="inbound.stream.sockopt.tcpMptcp"></a-switch>
|
|
|
|
</a-form-item>
|
2025-01-01 17:42:50 +00:00
|
|
|
<a-form-item label="Penetrate">
|
|
|
|
<a-switch v-model.trim="inbound.stream.sockopt.penetrate"></a-switch>
|
2024-05-24 07:57:14 +00:00
|
|
|
</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'>
|
2025-04-02 11:35:40 +00:00
|
|
|
<a-select v-model="inbound.stream.sockopt.domainStrategy" :style="{ width: '50%' }" :dropdown-class-name="themeSwitcher.currentTheme">
|
2024-05-24 07:57:14 +00:00
|
|
|
<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'>
|
2025-04-02 11:35:40 +00:00
|
|
|
<a-select v-model="inbound.stream.sockopt.tcpcongestion" :style="{ width: '50%' }" :dropdown-class-name="themeSwitcher.currentTheme">
|
2024-05-24 07:57:14 +00:00
|
|
|
<a-select-option v-for="key in TCP_CONGESTION_OPTION" :value="key">[[ key ]]</a-select-option>
|
|
|
|
</a-select>
|
2023-12-13 15:57:36 +00:00
|
|
|
</a-form-item>
|
2024-05-22 16:35:46 +00:00
|
|
|
<a-form-item label="TProxy">
|
2025-04-02 11:35:40 +00:00
|
|
|
<a-select v-model="inbound.stream.sockopt.tproxy" :style="{ width: '50%' }" :dropdown-class-name="themeSwitcher.currentTheme">
|
2024-01-09 09:10:40 +00:00
|
|
|
<a-select-option value="off">Off</a-select-option>
|
2023-12-13 15:57:36 +00:00
|
|
|
<a-select-option value="redirect">Redirect</a-select-option>
|
2024-05-22 16:35:46 +00:00
|
|
|
<a-select-option value="tproxy">TProxy</a-select-option>
|
2023-12-13 15:57:36 +00:00
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
2024-05-24 07:57:14 +00:00
|
|
|
<a-form-item label="Dialer Proxy">
|
|
|
|
<a-input v-model="inbound.stream.sockopt.dialerProxy"></a-input>
|
2024-05-22 16:35:46 +00:00
|
|
|
</a-form-item>
|
2024-05-24 07:57:14 +00:00
|
|
|
<a-form-item label="Interface Name">
|
|
|
|
<a-input v-model="inbound.stream.sockopt.interfaceName"></a-input>
|
2024-05-22 16:35:46 +00:00
|
|
|
</a-form-item>
|
2023-12-13 15:57:36 +00:00
|
|
|
</template>
|
2023-08-26 12:09:18 +00:00
|
|
|
</a-form>
|
2023-12-19 09:36:36 +00:00
|
|
|
{{end}}
|