From 0cdff227e7f9e81bd0b9d04b5781d5d0ee0c3078 Mon Sep 17 00:00:00 2001 From: LeonSparta <46887992+LeonSparta@users.noreply.github.com> Date: Wed, 22 Oct 2025 21:01:46 +0800 Subject: [PATCH 1/4] 1. Added a launch option --- src/Launch.lua | 2 +- src/Modules/Main.lua | 5 +++++ src/UpdateCheck.lua | 12 +++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/Launch.lua b/src/Launch.lua index 505a42b9e5..745c104c3c 100644 --- a/src/Launch.lua +++ b/src/Launch.lua @@ -335,7 +335,7 @@ function launch:CheckForUpdate(inBackground) self.updateProgress = "Checking..." self.lastUpdateCheck = GetTime() local update = io.open("UpdateCheck.lua", "r") - local id = LaunchSubScript(update:read("*a"), "GetScriptPath,GetRuntimePath,GetWorkDir,MakeDir", "ConPrintf,UpdateProgress", self.connectionProtocol, self.proxyURL) + local id = LaunchSubScript(update:read("*a"), "GetScriptPath,GetRuntimePath,GetWorkDir,MakeDir", "ConPrintf,UpdateProgress", self.connectionProtocol, self.proxyURL, self.noSSL or false) if id then self.subScripts[id] = { type = "UPDATE" diff --git a/src/Modules/Main.lua b/src/Modules/Main.lua index a6ba48d4b7..74616d0b9d 100644 --- a/src/Modules/Main.lua +++ b/src/Modules/Main.lua @@ -38,6 +38,11 @@ if arg and isValueInTable(arg, "--no-jit") then ConPrintf("JIT Disabled") end +if arg and isValueInTable(arg, "--no-ssl") then + launch.noSSL = true + ConPrintf("SSL verification disabled") +end + local tempTable1 = { } local tempTable2 = { } diff --git a/src/UpdateCheck.lua b/src/UpdateCheck.lua index 08f0217a35..b3be64ad10 100644 --- a/src/UpdateCheck.lua +++ b/src/UpdateCheck.lua @@ -4,7 +4,7 @@ -- Module: Update Check -- Checks for updates -- -local connectionProtocol, proxyURL = ... +local connectionProtocol, proxyURL, noSSL = ... local xml = require("xml") local sha1 = require("sha1") @@ -28,6 +28,11 @@ local function downloadFileText(source, file) if proxyURL then easy:setopt(curl.OPT_PROXY, proxyURL) end + if noSSL then + easy:setopt(curl.OPT_SSL_VERIFYPEER, 0) + easy:setopt(curl.OPT_SSL_VERIFYHOST, 0) + ConPrintf("SSL verification disabled") + end easy:setopt_writefunction(function(data) text = text..data return true @@ -59,6 +64,11 @@ local function downloadFile(source, file, outName) if proxyURL then easy:setopt(curl.OPT_PROXY, proxyURL) end + if noSSL then + easy:setopt(curl.OPT_SSL_VERIFYPEER, 0) + easy:setopt(curl.OPT_SSL_VERIFYHOST, 0) + ConPrintf("SSL verification disabled") + end local file = io.open(outName, "wb+") easy:setopt_writefunction(file) local _, error = easy:perform() From 1317398f32bd2328af25f25bdb8e633e142c9a76 Mon Sep 17 00:00:00 2001 From: LeonSparta <46887992+LeonSparta@users.noreply.github.com> Date: Thu, 23 Oct 2025 09:53:22 +0800 Subject: [PATCH 2/4] 1. Indentation fix for UpdateCheck.lua --- src/UpdateCheck.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/UpdateCheck.lua b/src/UpdateCheck.lua index b3be64ad10..ef14b60fd2 100644 --- a/src/UpdateCheck.lua +++ b/src/UpdateCheck.lua @@ -29,9 +29,9 @@ local function downloadFileText(source, file) easy:setopt(curl.OPT_PROXY, proxyURL) end if noSSL then - easy:setopt(curl.OPT_SSL_VERIFYPEER, 0) - easy:setopt(curl.OPT_SSL_VERIFYHOST, 0) - ConPrintf("SSL verification disabled") + easy:setopt(curl.OPT_SSL_VERIFYPEER, 0) + easy:setopt(curl.OPT_SSL_VERIFYHOST, 0) + ConPrintf("SSL verification disabled") end easy:setopt_writefunction(function(data) text = text..data @@ -65,9 +65,9 @@ local function downloadFile(source, file, outName) easy:setopt(curl.OPT_PROXY, proxyURL) end if noSSL then - easy:setopt(curl.OPT_SSL_VERIFYPEER, 0) - easy:setopt(curl.OPT_SSL_VERIFYHOST, 0) - ConPrintf("SSL verification disabled") + easy:setopt(curl.OPT_SSL_VERIFYPEER, 0) + easy:setopt(curl.OPT_SSL_VERIFYHOST, 0) + ConPrintf("SSL verification disabled") end local file = io.open(outName, "wb+") easy:setopt_writefunction(file) From a9d4f66045afe8e91b520a365d667d1b64a0a4b6 Mon Sep 17 00:00:00 2001 From: LeonSparta <46887992+LeonSparta@users.noreply.github.com> Date: Thu, 23 Oct 2025 09:53:56 +0800 Subject: [PATCH 3/4] 1. Indentation fix for Main.lua --- src/Modules/Main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Modules/Main.lua b/src/Modules/Main.lua index 74616d0b9d..905bf45471 100644 --- a/src/Modules/Main.lua +++ b/src/Modules/Main.lua @@ -39,8 +39,8 @@ if arg and isValueInTable(arg, "--no-jit") then end if arg and isValueInTable(arg, "--no-ssl") then - launch.noSSL = true - ConPrintf("SSL verification disabled") + launch.noSSL = true + ConPrintf("SSL verification disabled") end local tempTable1 = { } From d21376a910e4b922061be6a9cc3371f36aba8ed8 Mon Sep 17 00:00:00 2001 From: LeonSparta <46887992+LeonSparta@users.noreply.github.com> Date: Fri, 31 Oct 2025 15:11:15 +0800 Subject: [PATCH 4/4] 1. Added SSL bypass to launch:DownloadPage function, now build links from pobb.in can successfully import. --- src/Launch.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Launch.lua b/src/Launch.lua index 3cb1f925ad..0b579a4c33 100644 --- a/src/Launch.lua +++ b/src/Launch.lua @@ -254,7 +254,7 @@ end function launch:DownloadPage(url, callback, params) params = params or {} local script = [[ - local url, requestHeader, requestBody, connectionProtocol, proxyURL = ... + local url, requestHeader, requestBody, connectionProtocol, proxyURL, noSSL = ... local responseHeader = "" local responseBody = "" ConPrintf("Downloading page at: %s", url) @@ -281,6 +281,10 @@ function launch:DownloadPage(url, callback, params) if proxyURL then easy:setopt(curl.OPT_PROXY, proxyURL) end + if noSSL then + easy:setopt(curl.OPT_SSL_VERIFYPEER, 0) + easy:setopt(curl.OPT_SSL_VERIFYHOST, 0) + end easy:setopt_headerfunction(function(data) responseHeader = responseHeader .. data return true @@ -303,7 +307,7 @@ function launch:DownloadPage(url, callback, params) ConPrintf("Download complete. Status: %s", errMsg or "OK") return responseBody, errMsg, responseHeader ]] - local id = LaunchSubScript(script, "", "ConPrintf", url, params.header, params.body, self.connectionProtocol, self.proxyURL) + local id = LaunchSubScript(script, "", "ConPrintf", url, params.header, params.body, self.connectionProtocol, self.proxyURL, self.noSSL or false) if id then self.subScripts[id] = { type = "DOWNLOAD",