Skip to content

Comments

fix remote config and password check logic#316

Open
HayaseYuukaDaemon wants to merge 1 commit intoliyihao1110:mainfrom
HayaseYuukaDaemon:fix-config-model-issue
Open

fix remote config and password check logic#316
HayaseYuukaDaemon wants to merge 1 commit intoliyihao1110:mainfrom
HayaseYuukaDaemon:fix-config-model-issue

Conversation

@HayaseYuukaDaemon
Copy link
Contributor

本地模式判断方法修改为

def is_local(self) -> bool:
        """NapCat 是否为本地服务。"""
        if self.napcat.remote_mode is None:
            return self.napcat.ws_host in ("localhost", "127.0.0.1")
        return self.napcat.remote_mode

优先从配置文件读取

修改get_security_issues逻辑, 引入need_fix开关, 原逻辑一旦调用了fix_security_issues会直接把密码改掉, 还没有修改原密码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant