Show ALPN order

Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
MHSanaei 2023-08-26 15:45:53 +03:30
parent 147999dd88
commit 872974910c
3 changed files with 10 additions and 5 deletions

View file

@ -262,6 +262,7 @@ body {
.ant-card-dark .ant-collapse-content, .ant-card-dark .ant-collapse-content,
.ant-card-dark .ant-calendar, .ant-card-dark .ant-calendar,
.ant-card-dark .ant-table-placeholder, .ant-card-dark .ant-table-placeholder,
.ant-card-dark .ant-select-selection__choice,
.ant-card-dark .ant-input-group-addon { .ant-card-dark .ant-input-group-addon {
color: hsla(0,0%,100%,.65); color: hsla(0,0%,100%,.65);
background-color: #262f3d; background-color: #262f3d;

View file

@ -78,9 +78,9 @@ const UTLS_FINGERPRINT = {
}; };
const ALPN_OPTION = { const ALPN_OPTION = {
HTTP1: "http/1.1",
H2: "h2",
H3: "h3", H3: "h3",
H2: "h2",
HTTP1: "http/1.1",
}; };
const SNIFFING_OPTION = { const SNIFFING_OPTION = {

View file

@ -80,9 +80,13 @@
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item label="Alpn"> <a-form-item label="Alpn">
<a-checkbox-group v-model="inbound.stream.tls.alpn" style="width:200px"> <a-select
<a-checkbox v-for="key,value in ALPN_OPTION" :value="key">[[ value ]]</a-checkbox> mode="multiple"
</a-checkbox-group> style="width: 250px"
:dropdown-class-name="themeSwitcher.darkCardClass"
v-model="inbound.stream.tls.alpn">
<a-select-option v-for="alpn in ALPN_OPTION" :value="alpn">[[ alpn ]]</a-select-option>
</a-select>
</a-form-item> </a-form-item>
<br> <br>
<a-form-item label="Allow insecure"> <a-form-item label="Allow insecure">