Skip to content

Commit

Permalink
Show tcpNoDelay only when tcpMptcp is true
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei committed Oct 3, 2024
1 parent 98869c7 commit b22f859
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web/html/xui/form/outbound.html
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,8 @@
</a-form-item>
<a-form-item label="Multipath TCP">
<a-switch v-model.trim="outbound.stream.sockopt.tcpMptcp"></a-switch>
</a-form-item>
<a-form-item label="TCP No-Delay">
</a-form-item>
<a-form-item label="TCP No-Delay" v-if="outbound.stream.sockopt.tcpMptcp">
<a-switch v-model="outbound.stream.sockopt.tcpNoDelay"></a-switch>
</a-form-item>
</template>
Expand Down
2 changes: 1 addition & 1 deletion web/html/xui/form/stream/stream_sockopt.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<a-form-item label="Multipath TCP">
<a-switch v-model.trim="inbound.stream.sockopt.tcpMptcp"></a-switch>
</a-form-item>
<a-form-item label="TCP No-Delay">
<a-form-item label="TCP No-Delay" v-if="inbound.stream.sockopt.tcpMptcp">
<a-switch v-model.trim="inbound.stream.sockopt.tcpNoDelay"></a-switch>
</a-form-item>
<a-form-item label="V6 Only">
Expand Down

0 comments on commit b22f859

Please sign in to comment.