full tls override in inbound multi-domain

This commit is contained in:
Alireza Ahmadi
2025-01-05 19:36:01 +01:00
parent dbee22b637
commit 751066ac6c
10 changed files with 75 additions and 109 deletions
+1 -1
View File
@@ -161,7 +161,7 @@
</template>
<script lang="ts">
import { acme } from '@/types/inTls'
import { acme } from '@/types/tls'
export default {
props: ['tls'],
+1 -1
View File
@@ -79,7 +79,7 @@
<script lang="ts">
import { i18n } from '@/locales'
import HttpUtils from '@/plugins/httputil'
import { ech } from '@/types/inTls'
import { ech } from '@/types/tls'
import { push } from 'notivue'
export default {
+2 -2
View File
@@ -216,7 +216,7 @@
</template>
<script lang="ts">
import { oTls, defaultOutTls } from '@/types/outTls'
import { oTls, defaultOutTls } from '@/types/tls'
export default {
props: ['outbound'],
data() {
@@ -275,7 +275,7 @@ export default {
},
tlsEnable: {
get() { return Object.hasOwn(this.tls, 'enabled') ? this.tls.enabled : false },
set(newValue: boolean) { this.$props.outbound.tls = newValue ? { enabled: true } : {} }
set(newValue: boolean) { this.$props.outbound.tls = newValue ? { enabled: true } : { enabled: false } }
},
disable_sni: {
get() { return this.tls.disable_sni ?? false },