tls fix and migration patch

This commit is contained in:
Alireza Ahmadi
2025-01-11 12:32:52 +01:00
parent 94473b40de
commit 67582015d3
3 changed files with 40 additions and 27 deletions
+1 -6
View File
@@ -334,11 +334,6 @@ export default {
],
fingerprints: [
{ title: "Chrome", value: "chrome" },
{ title: "Chrome PSK", value: "chrome_psk" },
{ title: "Chrome PSK Shuffle", value: "chrome_psk_shuffle" },
{ title: "Chrome Padding PSK Shuffle", value: "chrome_padding_psk_shuffle" },
{ title: "Chrome Post-Quantum", value: "chrome_pq" },
{ title: "Chrome Post-Quantum PSK", value: "chrome_pq_psk" },
{ title: "Firefox", value: "firefox" },
{ title: "Microsoft Edge", value: "edge" },
{ title: "Apple Safari", value: "safari" },
@@ -356,7 +351,7 @@ export default {
if (this.$props.id > 0) {
const newData = <tls>JSON.parse(this.$props.data)
this.tls = newData
if (this.tls.server == null) this.tls.server = {}
if (this.tls.server == null) this.tls.server = { enabled: true }
if (this.tls.client == null) this.tls.client = {}
this.tlsType = newData.server?.reality == undefined ? 0 : 1
this.usePath = newData.server?.key == undefined ? 0 : 1