3x-ui/web/html/form/stream/stream_settings.html

67 lines
1.8 KiB
HTML
Raw Normal View History

2023-02-09 19:18:06 +00:00
{{define "form/streamSettings"}}
<!-- select stream network -->
2026-04-20 15:25:18 +00:00
<a-form
:colon="false"
:label-col="{ md: {span:8} }"
:wrapper-col="{ md: {span:14} }"
v-if="inbound.protocol != Protocols.HYSTERIA"
>
<a-form-item label='{{ i18n "transmission" }}'>
2026-04-20 15:25:18 +00:00
<a-select
v-model="inbound.stream.network"
:style="{ width: '75%' }"
@change="streamNetworkChange"
:dropdown-class-name="themeSwitcher.currentTheme"
>
<a-select-option value="tcp">TCP (RAW)</a-select-option>
<a-select-option value="kcp">mKCP</a-select-option>
<a-select-option value="ws">WebSocket</a-select-option>
<a-select-option value="grpc">gRPC</a-select-option>
<a-select-option value="httpupgrade">HTTPUpgrade</a-select-option>
<a-select-option value="xhttp">XHTTP</a-select-option>
</a-select>
</a-form-item>
2023-02-09 19:18:06 +00:00
</a-form>
<!-- tcp -->
<template v-if="inbound.stream.network === 'tcp'">
{{template "form/streamTCP"}}
2023-02-09 19:18:06 +00:00
</template>
<!-- kcp -->
<template v-if="inbound.stream.network === 'kcp'">
{{template "form/streamKCP"}}
2023-02-09 19:18:06 +00:00
</template>
<!-- ws -->
<template v-if="inbound.stream.network === 'ws'">
{{template "form/streamWS"}}
2023-02-09 19:18:06 +00:00
</template>
<!-- grpc -->
<template v-if="inbound.stream.network === 'grpc'">
{{template "form/streamGRPC"}}
2023-02-09 19:18:06 +00:00
</template>
2024-03-11 07:36:33 +00:00
<!-- hysteria -->
<template v-if="inbound.stream.network === 'hysteria'">
{{template "form/streamHysteria"}}
</template>
2024-03-11 07:36:33 +00:00
<!-- httpupgrade -->
<template v-if="inbound.stream.network === 'httpupgrade'">
{{template "form/streamHTTPUpgrade"}}
2024-03-11 07:36:33 +00:00
</template>
2024-12-03 21:24:34 +00:00
<!-- xhttp -->
<template v-if="inbound.stream.network === 'xhttp'">
{{template "form/streamXHTTP"}}
</template>
<!-- sockopt -->
2026-04-20 15:25:18 +00:00
<template> {{template "form/streamSockopt"}} </template>
2026-02-01 01:34:23 +00:00
<!-- finalmask -->
2026-04-20 15:25:18 +00:00
<template> {{template "form/streamFinalMask"}} </template>
{{end}}