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/outbound.html | |
| parent | d3377cd45effb3f95bb5b1023fd4d386d8c2e469 (diff) | |
New - HttpUpgrade Transport
Diffstat (limited to 'web/html/xui/form/outbound.html')
| -rw-r--r-- | web/html/xui/form/outbound.html | 64 |
1 files changed, 37 insertions, 27 deletions
diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html index 469c42b9..b6874240 100644 --- a/web/html/xui/form/outbound.html +++ b/web/html/xui/form/outbound.html @@ -214,34 +214,34 @@ <!-- stream settings --> <template v-if="outbound.canEnableStream()"> - <a-form-item label='{{ i18n "transmission" }}'> - <a-select v-model="outbound.stream.network" @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> - <a-select-option value="ws">WS</a-select-option> - <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> - </a-form-item> + <a-form-item label='{{ i18n "transmission" }}'> + <a-select v-model="outbound.stream.network" @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> + <a-select-option value="ws">WS</a-select-option> + <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> <template v-if="outbound.stream.network === 'tcp'"> <a-form-item label='HTTP {{ i18n "camouflage" }}'> - <a-switch - :checked="outbound.stream.tcp.type === 'http'" + <a-switch :checked="outbound.stream.tcp.type === 'http'" @change="checked => outbound.stream.tcp.type = checked ? 'http' : 'none'"> </a-switch> </a-form-item> <template v-if="outbound.stream.tcp.type == 'http'"> - <a-form-item label='{{ i18n "host" }}'> - <a-input v-model.trim="outbound.stream.tcp.host"></a-input> - </a-form-item> - <a-form-item label='{{ i18n "path" }}'> - <a-input v-model.trim="outbound.stream.tcp.path"></a-input> - </a-form-item> + <a-form-item label='{{ i18n "host" }}'> + <a-input v-model.trim="outbound.stream.tcp.host"></a-input> + </a-form-item> + <a-form-item label='{{ i18n "path" }}'> + <a-input v-model.trim="outbound.stream.tcp.path"></a-input> + </a-form-item> </template> </template> - + <!-- kcp --> <template v-if="outbound.stream.network === 'kcp'"> <a-form-item label='{{ i18n "camouflage" }}'> @@ -265,7 +265,7 @@ </a-form-item> <a-form-item label='Uplink (MB/s)'> <a-input-number v-model.number="outbound.stream.kcp.upCap"></a-input-number> - </a-form-item> + </a-form-item> <a-form-item label='Downlink (MB/s)'> <a-input-number v-model.number="outbound.stream.kcp.downCap"></a-input-number> </a-form-item> @@ -279,7 +279,7 @@ <a-input-number v-model.number="outbound.stream.kcp.writeBuffer"></a-input-number> </a-form-item> </template> - + <!-- ws --> <template v-if="outbound.stream.network === 'ws'"> <a-form-item label='{{ i18n "host" }}'> @@ -287,9 +287,9 @@ </a-form-item> <a-form-item label='{{ i18n "path" }}'> <a-form-item><a-input v-model.trim="outbound.stream.ws.path"></a-input> - </a-form-item> + </a-form-item> </template> - + <!-- http --> <template v-if="outbound.stream.network === 'http'"> <a-form-item label='{{ i18n "host" }}'> @@ -299,7 +299,7 @@ <a-input v-model.trim="outbound.stream.http.path"></a-input> </a-form-item> </template> - + <!-- quic --> <template v-if="outbound.stream.network === 'quic'"> <a-form-item label='{{ i18n "pages.inbounds.stream.quic.encryption" }}'> @@ -311,7 +311,7 @@ </a-form-item> <a-form-item label='{{ i18n "password" }}'> <a-input v-model.trim="outbound.stream.quic.key"></a-input> - </a-form-item> + </a-form-item> <a-form-item label='{{ i18n "camouflage" }}'> <a-select v-model="outbound.stream.quic.type" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option value="none">None</a-select-option> @@ -323,7 +323,7 @@ </a-select> </a-form-item> </template> - + <!-- grpc --> <template v-if="outbound.stream.network === 'grpc'"> <a-form-item label='Service Name'> @@ -333,6 +333,16 @@ <a-switch v-model="outbound.stream.grpc.multiMode"></a-switch> </a-form-item> </template> + + <!-- httpupgrade --> + <template v-if="outbound.stream.network === 'httpupgrade'"> + <a-form-item label='{{ i18n "host" }}'> + <a-input v-model="outbound.stream.httpupgrade.host"></a-input> + </a-form-item> + <a-form-item label='{{ i18n "path" }}'> + <a-form-item><a-input v-model.trim="outbound.stream.httpupgrade.path"></a-input> + </a-form-item> + </template> </template> <!-- tls settings --> |
