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

Method ensureInitialized

zpr/zpr.ts:192–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190 if (!this.initialized || !this.db) {
191 await this.init();
192 }
193 }
194
195 static async getProxyHost(): Promise<string> {
196 await this.ensureInitialized();
197 if (!this.db) return DEFAULT_CONFIG[CONFIG_KEYS.PROXY_HOST];
198 return this.db.data[CONFIG_KEYS.PROXY_HOST] || DEFAULT_CONFIG[CONFIG_KEYS.PROXY_HOST];
199 }
200

Callers 2

getProxyHostMethod · 0.95
setProxyHostMethod · 0.95

Calls 1

initMethod · 0.95

Tested by

no test coverage detected