mirror of
https://github.com/Routstr/routstrd.git
synced 2026-10-05 12:28:23 +00:00
refactor: base 'already local' guard on daemonUrl only
Match the codebase's isRemote check (!!config.daemonUrl). An orphaned authUrl without daemonUrl is already local from the daemon's perspective, so the guard should only check daemonUrl.
This commit is contained in:
+1
-1
@@ -593,7 +593,7 @@ program
|
||||
.action(async () => {
|
||||
const config = await loadConfig();
|
||||
|
||||
if (!config.daemonUrl && !config.authUrl) {
|
||||
if (!config.daemonUrl) {
|
||||
console.log("Already in local mode — no remote daemon URL is configured.");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user