refactor: remove monitor legacy compatibility
This commit is contained in:
@@ -63,11 +63,10 @@ export default {
|
||||
|
||||
/**
|
||||
* Get the monitor bridge client if monitor_port is configured.
|
||||
* Legacy alias monitorPort is still accepted.
|
||||
*/
|
||||
function getBridgeClient(): MonitorBridgeClient | null {
|
||||
const live = resolveConfig() as any;
|
||||
const port = live.monitor_port ?? live.monitorPort;
|
||||
const live = resolveConfig();
|
||||
const port = live.monitor_port;
|
||||
if (!port || port <= 0) return null;
|
||||
return new MonitorBridgeClient(port);
|
||||
}
|
||||
@@ -349,7 +348,7 @@ export default {
|
||||
config: {
|
||||
backendUrl: live.backendUrl,
|
||||
identifier: live.identifier || hostname(),
|
||||
monitorPort: (live as any).monitor_port ?? (live as any).monitorPort ?? null,
|
||||
monitorPort: live.monitor_port ?? null,
|
||||
reportIntervalSec: live.reportIntervalSec,
|
||||
hasApiKey: Boolean(live.apiKey),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user