INNER CODE UNIT · TypeScript

loadAccountsFromConfig

lazy-dinosaur/ccxt-mcp · src/server.ts:107

  private async loadAccountsFromConfig() {
    try {
      console.error(`[DEBUG] Loading config from: ${this.configPath}`);
      
      // 파일 존재 확인
      if (!fs.existsSync(this.configPath)) {
        console.error(`[ERROR] Config file not found: ${this.configPath}`);
        return;
      }

      // Check file permissions — warn if world-readable
      try {
        const stats = fs.statSync(this.configPath);
        const mode = stats.mode & 0o777;
        if (mode & 0o044) {
          console.warn(
            `[SECURITY] Config file ${this.configPath} has permissive mode ${mode.toString(8)}. ` +
            `Contains API keys — recommend chmod 600.`,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…