Skip to content

Commit

Permalink
[hy2] optional masquerade
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza0 committed May 23, 2024
1 parent 6865c8b commit edfe0c8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions frontend/src/components/protocols/Hysteria2.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<v-card subtitle="Hysteria2">
<v-row v-if="direction == 'in'">
<v-col cols="12" sm="6" md="4">
<v-col cols="12" sm="6" md="4" v-if="data.masquerade != undefined">
<v-text-field
label="HTTP3 server on auth fail"
hide-details
Expand Down Expand Up @@ -46,7 +46,7 @@
</v-text-field>
</v-col>
</v-row>
<v-row v-if="data.obfs">
<v-row v-if="data.obfs != undefined">
<v-col cols="12" sm="6" md="4">
<v-text-field
:label="$t('types.hy.obfs')"
Expand All @@ -66,6 +66,9 @@
<v-list-item>
<v-switch v-model="optionObfs" color="primary" :label="$t('types.hy.obfs')" hide-details></v-switch>
</v-list-item>
<v-list-item>
<v-switch v-model="optionMasq" color="primary" label="Masquerade" hide-details></v-switch>
</v-list-item>
</v-list>
</v-card>
</v-menu>
Expand Down Expand Up @@ -95,6 +98,10 @@ export default {
optionObfs: {
get(): boolean { return this.$props.data.obfs != undefined },
set(v:boolean) { this.$props.data.obfs = v ? { type: "salamander", password: "" } : undefined }
},
optionMasq: {
get(): boolean { return this.$props.data.masquerade != undefined },
set(v:boolean) { this.$props.data.masquerade = v ? "" : undefined }
}
},
components: { Network }
Expand Down

0 comments on commit edfe0c8

Please sign in to comment.