Forráskód Böngészése

fix(ModLaunch): 证书不信任导致无法登录皮肤站

wyc-26 1 éve
szülő
commit
acaff10bf0

+ 1 - 0
Plain Craft Launcher 2/Modules/Minecraft/ModLaunch.vb

@@ -1429,6 +1429,7 @@ Retry:
         End If
         End If
         'Authlib-Injector
         'Authlib-Injector
         If McLoginLoader.Output.Type = "Auth" Then
         If McLoginLoader.Output.Type = "Auth" Then
+            If (McLaunchJavaSelected.VersionCode >= 6) Then DataList.Add("-Djavax.net.ssl.trustStoreType=WINDOWS-ROOT")
             Dim Server As String = If(McLoginLoader.Input.Type = McLoginType.Legacy,
             Dim Server As String = If(McLoginLoader.Input.Type = McLoginType.Legacy,
                 "http://hiperauth.tech/api/yggdrasil-hiper/", 'HiPer 登录
                 "http://hiperauth.tech/api/yggdrasil-hiper/", 'HiPer 登录
                 Setup.Get("VersionServerAuthServer", McVersionCurrent))
                 Setup.Get("VersionServerAuthServer", McVersionCurrent))