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

Function getDefaultServer

speedtest/speedtest.ts:208–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206function saveDefaultServer(serverId: number | null): void {
207 writeConfig({ default_server_id: serverId });
208}
209
210function removeDefaultServer(): void {
211 try {
212 // Only clear default_server_id while preserving other settings
213 const cfg = readConfig();
214 delete cfg.default_server_id;

Callers 1

speedtestFunction · 0.85

Calls 1

readConfigFunction · 0.85

Tested by

no test coverage detected