feat: add new NapCat config key: packetBackend

- Acceptable values: `native`, `frida`, `auto`, `disable`
- Default value is set to `auto`
This commit is contained in:
pk5ls20 committed 2024-11-05 14:45:02 +08:00
1 parent ad6f21980c
commit e46d274a75
5 files changed
+25 -5

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ export class PacketHighwaySession {
private async checkAvailable() {
if (!this.packetClient.available) {
throw new Error('packetServer不可用,请参照文档 https://napneko.github.io/config/advanced 检查packetServer状态或进行配置');
throw new Error('packetBackend不可用,请参照文档 https://napneko.github.io/config/advanced 和启动日志检查packetBackend状态或进行配置!');
}
if (this.sig.sigSession === null || this.sig.sessionKey === null) {
this.logger.logWarn('[Highway] sigSession or sessionKey not available!');