fix: skip remote profiles in startAll() to prevent startup hang (#197)

This commit is contained in:
356252190-star
2026-04-25 09:22:01 +08:00
committed by GitHub
parent 369001824e
commit 12ae840234
@@ -579,6 +579,14 @@ export class GatewayManager {
}
await this.resolvePort(name)
// Skip remote profiles — local hermes command cannot start remote gateways
const { host } = this.readProfilePort(name)
if (host && host !== '127.0.0.1' && host !== 'localhost') {
logger.info('%s: remote profile (host=%s), skipping auto-start', name, host)
continue
}
toStart.push(name)
}