MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / mapArch

Method mapArch

openlist/openlist.ts:809–817  ·  view source on GitHub ↗
(nodeArch: string)

Source from the content-addressed store, hash-verified

807 lines.push(`<b>端口:</b> ${port}`);
808 if (publicIp && port === "listen") {
809 const url = `http://${publicIp}:5244/`;
810 lines.push(`<b>链接:</b> <a href="${htmlEscape(url)}">${htmlEscape(url)}</a>`);
811 }
812
813 // 显示用户账户信息
814 const configPath = `${installPath}/data/config.json`;
815 if (await this.fileExists(configPath)) {
816 try {
817 const configContent = await fs.readFile(configPath, "utf-8");
818 const config = JSON.parse(configContent);
819 if (config.users && config.users.length > 0) {
820 lines.push("\n<b>账户信息:</b>");

Callers 2

handleInstallMethod · 0.95
handleUpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected