letheriver2007 / Firefly-Launcher

基于Pyside6的启动器 ( 集成 LunarCore Command Tool )
GNU General Public License v3.0
31 stars 3 forks source link

Error when trying to use the remote command. #14

Open gamer-mitsuha opened 6 months ago

gamer-mitsuha commented 6 months ago

image

The server itself is running fine and I can login successfully and play. However, when trying to use the remote command, I got this "ssl wrong version number" error.

Do you know why this happens and any fix to this? Thanks!

letheriver2007 commented 6 months ago

似乎服务端启用了SSL,一下修改是否可行? 以下是修改后的配置:

config.json

  "httpServer": {
    "useSSL": false,
    "regionListRefresh": 60000,
    "gm_private": "melon",
    "gm_public": "melon",
    "bindAddress": "0.0.0.0",
    "bindPort": 443,
    "publicAddress": "127.0.0.1",
    "publicPort": 443
  },

Fiddler

import System;
import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;

class Handlers
{
    static function OnBeforeRequest(oS: Session) {
        if (oS.host.EndsWith(".starrails.com") || oS.host.EndsWith(".hoyoverse.com") || oS.host.EndsWith(".mihoyo.com") || oS.host.EndsWith(".bhsr.com")) {
            oS.host = "127.0.0.1:443";
            oS.fullUrl = oS.fullUrl.Replace("https://", "http://");
        }
    }
};
TheDoyraLover commented 6 months ago

tried doing that but it's still showing the same error, maybe there is a possibility to look into simplifying the process or maybe there is an issue preventing it?

Liujunhua007 commented 5 months ago

image image image 我修改了,都改了还是不行