Files
trihuy-russian/web/html/form/stream/stream_settings.html
T

60 lines
1.8 KiB
HTML
Raw Normal View History

2023-02-09 22:48:06 +03:30
{{define "form/streamSettings"}}
<!-- select stream network -->
2026-02-01 02:34:23 +01:00
<a-form :colon="false" :label-col="{ md: {span:8} }"
:wrapper-col="{ md: {span:14} }">
2024-01-09 16:39:22 +03:30
<a-form-item label='{{ i18n "transmission" }}'>
2026-02-01 02:34:23 +01:00
<a-select v-model="inbound.stream.network" :style="{ width: '75%' }"
@change="streamNetworkChange"
2023-12-13 19:27:36 +03:30
:dropdown-class-name="themeSwitcher.currentTheme">
2024-10-01 09:40:03 +02:00
<a-select-option value="tcp">TCP (RAW)</a-select-option>
2024-01-09 09:10:40 +00:00
<a-select-option value="kcp">mKCP</a-select-option>
2024-03-11 13:34:15 +03:30
<a-select-option value="ws">WebSocket</a-select-option>
2023-03-25 19:42:31 +03:30
<a-select-option value="grpc">gRPC</a-select-option>
2024-03-11 13:34:15 +03:30
<a-select-option value="httpupgrade">HTTPUpgrade</a-select-option>
2024-12-03 22:24:34 +01:00
<a-select-option value="xhttp">XHTTP</a-select-option>
2023-02-09 22:48:06 +03:30
</a-select>
</a-form-item>
</a-form>
<!-- tcp -->
<template v-if="inbound.stream.network === 'tcp'">
{{template "form/streamTCP"}}
</template>
<!-- kcp -->
<template v-if="inbound.stream.network === 'kcp'">
{{template "form/streamKCP"}}
</template>
<!-- ws -->
<template v-if="inbound.stream.network === 'ws'">
{{template "form/streamWS"}}
</template>
<!-- grpc -->
<template v-if="inbound.stream.network === 'grpc'">
{{template "form/streamGRPC"}}
</template>
2024-03-11 11:06:33 +03:30
<!-- httpupgrade -->
<template v-if="inbound.stream.network === 'httpupgrade'">
2024-03-11 13:34:15 +03:30
{{template "form/streamHTTPUpgrade"}}
2024-03-11 11:06:33 +03:30
</template>
2024-12-03 22:24:34 +01:00
<!-- xhttp -->
<template v-if="inbound.stream.network === 'xhttp'">
{{template "form/streamXHTTP"}}
2024-06-18 12:49:20 +02:00
</template>
<!-- sockopt -->
<template>
{{template "form/streamSockopt"}}
</template>
2026-02-01 02:34:23 +01:00
<!-- finalmask - only for TCP, WS, HTTPUpgrade, XHTTP, mKCP -->
<template
v-if="['tcp', 'ws', 'httpupgrade', 'xhttp', 'kcp'].includes(inbound.stream.network)">
{{template "form/streamFinalMask"}}
</template>
2024-01-09 09:10:40 +00:00
{{end}}