Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-04-02 23:11:06 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-04-02 23:11:06 +0300
commitc147636133a62b5a5b90f9cc4abc37949832e2e1 (patch)
tree6471ed45e3971185a6ddc832a1264f364bfcf7eb /web/html/xui
parentfa7a6a3f99ba2d0b08f9893fc6f04c434a3ec8f8 (diff)
add header for httpupgrade
Diffstat (limited to 'web/html/xui')
-rw-r--r--web/html/xui/form/outbound.html8
-rw-r--r--web/html/xui/form/stream/stream_httpupgrade.html13
-rw-r--r--web/html/xui/form/stream/stream_ws.html2
3 files changed, 18 insertions, 5 deletions
diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html
index 787108c2..98551495 100644
--- a/web/html/xui/form/outbound.html
+++ b/web/html/xui/form/outbound.html
@@ -290,8 +290,8 @@
<a-input v-model="outbound.stream.ws.host"></a-input>
</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-input v-model.trim="outbound.stream.ws.path"></a-input>
+ </a-form-item>
</template>
<!-- http -->
@@ -347,8 +347,8 @@
<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>
+ <a-input v-model.trim="outbound.stream.httpupgrade.path"></a-input>
+ </a-form-item>
</template>
</template>
diff --git a/web/html/xui/form/stream/stream_httpupgrade.html b/web/html/xui/form/stream/stream_httpupgrade.html
index 31897804..5a498076 100644
--- a/web/html/xui/form/stream/stream_httpupgrade.html
+++ b/web/html/xui/form/stream/stream_httpupgrade.html
@@ -9,5 +9,18 @@
<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 "pages.inbounds.stream.tcp.requestHeader" }}'>
+ <a-button size="small" @click="inbound.stream.httpupgrade.addHeader('host', '')">+</a-button>
+ </a-form-item>
+ <a-form-item :wrapper-col="{span:24}">
+ <a-input-group compact v-for="(header, index) in inbound.stream.httpupgrade.headers">
+ <a-input style="width: 50%" v-model.trim="header.name" placeholder='{{ i18n "pages.inbounds.stream.general.name"}}'>
+ <template slot="addonBefore" style="margin: 0;">[[ index+1 ]]</template>
+ </a-input>
+ <a-input style="width: 50%" v-model.trim="header.value" placeholder='{{ i18n "pages.inbounds.stream.general.value" }}'>
+ <a-button slot="addonAfter" size="small" @click="inbound.stream.httpupgrade.removeHeader(index)">-</a-button>
+ </a-input>
+ </a-input-group>
+ </a-form-item>
</a-form>
{{end}}
diff --git a/web/html/xui/form/stream/stream_ws.html b/web/html/xui/form/stream/stream_ws.html
index 44ebca8d..1aa02e72 100644
--- a/web/html/xui/form/stream/stream_ws.html
+++ b/web/html/xui/form/stream/stream_ws.html
@@ -10,7 +10,7 @@
<a-input v-model.trim="inbound.stream.ws.path"></a-input>
</a-form-item>
<a-form-item label='{{ i18n "pages.inbounds.stream.tcp.requestHeader" }}'>
- <a-button size="small" @click="inbound.stream.ws.addHeader('Host', '')">+</a-button>
+ <a-button size="small" @click="inbound.stream.ws.addHeader('host', '')">+</a-button>
</a-form-item>
<a-form-item :wrapper-col="{span:24}">
<a-input-group compact v-for="(header, index) in inbound.stream.ws.headers">