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

Method getProxyHost

zpr/zpr.ts:199–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
201 static async setProxyHost(host: string): Promise<boolean> {
202 await this.ensureInitialized();
203 if (!this.db) {
204 console.error("[zpr] 数据库未初始化");
205 return false;
206 }

Callers 2

getResultFunction · 0.80
ZprPluginClass · 0.80

Calls 1

ensureInitializedMethod · 0.95

Tested by

no test coverage detected