diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-11 10:36:33 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-11 10:57:43 +0300 |
| commit | d18eb7e4e45306ee09fcd60c3d589da5197b626a (patch) | |
| tree | 5447cfea8583cc72e7645866dd9ca64830ad405e /web/html/xui/form/stream | |
| parent | d3377cd45effb3f95bb5b1023fd4d386d8c2e469 (diff) | |
New - HttpUpgrade Transport
Diffstat (limited to 'web/html/xui/form/stream')
| -rw-r--r-- | web/html/xui/form/stream/stream_httpupgrade.html | 13 | ||||
| -rw-r--r-- | web/html/xui/form/stream/stream_settings.html | 9 |
2 files changed, 21 insertions, 1 deletions
diff --git a/web/html/xui/form/stream/stream_httpupgrade.html b/web/html/xui/form/stream/stream_httpupgrade.html new file mode 100644 index 00000000..73f10b07 --- /dev/null +++ b/web/html/xui/form/stream/stream_httpupgrade.html @@ -0,0 +1,13 @@ +{{define "form/streamHTTPUPGRADE"}} +<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }"> + <a-form-item label="PROXY Protocol"> + <a-switch v-model="inbound.stream.httpupgrade.acceptProxyProtocol"></a-switch> + </a-form-item> + <a-form-item label='{{ i18n "path" }}'> + <a-input v-model.trim="inbound.stream.httpupgrade.path"></a-input> + </a-form-item> + <a-form-item label='{{ i18n "host" }}'> + <a-input v-model.trim="inbound.stream.httpupgrade.host"></a-input> + </a-form-item> +</a-form> +{{end}} diff --git a/web/html/xui/form/stream/stream_settings.html b/web/html/xui/form/stream/stream_settings.html index af81651d..a3cb0362 100644 --- a/web/html/xui/form/stream/stream_settings.html +++ b/web/html/xui/form/stream/stream_settings.html @@ -2,7 +2,7 @@ <!-- select stream network --> <a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }"> <a-form-item label='{{ i18n "transmission" }}'> - <a-select v-model="inbound.stream.network" style="width: 50%" @change="streamNetworkChange" + <a-select v-model="inbound.stream.network" style="width: 75%" @change="streamNetworkChange" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option value="tcp">TCP</a-select-option> <a-select-option value="kcp">mKCP</a-select-option> @@ -10,6 +10,7 @@ <a-select-option value="http">H2</a-select-option> <a-select-option value="quic">QUIC</a-select-option> <a-select-option value="grpc">gRPC</a-select-option> + <a-select-option value="httpupgrade">HttpUpgrade</a-select-option> </a-select> </a-form-item> </a-form> @@ -43,6 +44,12 @@ <template v-if="inbound.stream.network === 'grpc'"> {{template "form/streamGRPC"}} </template> + +<!-- httpupgrade --> +<template v-if="inbound.stream.network === 'httpupgrade'"> + {{template "form/streamHTTPUPGRADE"}} +</template> + <!-- sockopt --> <template> {{template "form/streamSockopt"}} |
