diff options
Diffstat (limited to 'web/html')
| -rw-r--r-- | web/html/xui/form/outbound.html | 8 | ||||
| -rw-r--r-- | web/html/xui/form/stream/stream_httpupgrade.html | 13 | ||||
| -rw-r--r-- | web/html/xui/form/stream/stream_ws.html | 2 |
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"> |
