From a85d42bb70f105b5e13382d60a053ab58d638faf Mon Sep 17 00:00:00 2001 From: smail Date: Wed, 2 Sep 2026 02:12:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E8=87=AA=E5=8A=A8SSL?= =?UTF-8?q?=E4=BD=BF=E7=94=A8DNS=E7=94=B3=E8=AF=B7=E6=B3=9B=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=E8=AF=81=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/src/views/Setup/Setup.js | 16 ++++++++-------- fe/src/views/Setup/Setup.vue | 9 +-------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/fe/src/views/Setup/Setup.js b/fe/src/views/Setup/Setup.js index 6ea7e85..993fe90 100644 --- a/fe/src/views/Setup/Setup.js +++ b/fe/src/views/Setup/Setup.js @@ -91,7 +91,7 @@ export function usePage() { const sslSettings = reactive({ "type": "0", - "challenge": "http", + "challenge": "dns", "key_path": "./config/ssl/private.key", "crt_path": "./config/ssl/public.crt", "paramsList": [], @@ -123,8 +123,7 @@ export function usePage() { records.some((record) => record.type === 'AAAA') )) - const port = ref(80) - const sslRuntime = ref({}) + const sslRuntime = ref({}) const addDomain = () => { domainSettings.multi_domain.push([]) @@ -355,9 +354,11 @@ export function usePage() { sslSettings.type = "0" sslSettings.challenge = "dns" } + if (sslSettings.type === "0") { + sslSettings.challenge = "dns" + } sslRuntime.value = res.data || {} - port.value = res.data?.port || res.data?.httpPort || 80 - return res + return res }).catch((error) => { showSetupError(error) return null @@ -368,7 +369,7 @@ export function usePage() { fullscreenLoading.value = true; let sslType = sslSettings.type; - if (sslType === "0" && sslSettings.challenge === "dns") { + if (sslType === "0") { sslType = "2" } @@ -717,8 +718,7 @@ export function usePage() { dnsChallengeNotice, dnsInfos, hasDNSIPv6, - port, - addDomain, + addDomain, setPassword, getPassword, getDbConfig, diff --git a/fe/src/views/Setup/Setup.vue b/fe/src/views/Setup/Setup.vue index a974da1..e17cf29 100644 --- a/fe/src/views/Setup/Setup.vue +++ b/fe/src/views/Setup/Setup.vue @@ -278,11 +278,6 @@

{{ lang.setSSL }}

-
{{ lang.setSSL }}
@@ -298,9 +293,8 @@
- - @@ -403,7 +397,6 @@ const { dnsInfos, hasDNSIPv6, sslSettings, - port, dnsChecking, dnsChallengeNotice, waitDesc,