Repair uploads and let the console follow any registered server
This commit is contained in:
1 parent
3e24d4a7bb
commit
683cdc4016
15 files changed
+193
-84
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { env } from "./env";
|
||||
import { readNetwork, profileById } from "./network-config";
|
||||
import { serverName } from "./network-render";
|
||||
|
||||
/** Resolve registered targets only; never accept a Docker name from a client. */
|
||||
export function consoleTarget(id: string | null) {
|
||||
if (!id || id === "primary") return env.mcContainer;
|
||||
return serverName(profileById(readNetwork(), id).id);
|
||||
}
|
||||
Reference in new issue
Block a user