src.nth.io/

summaryrefslogtreecommitdiff
path: root/scrypted/scrypted-viewport.ts
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-06-14 19:22:49 -0500
committerLuke Hoersten <[email protected]>2026-06-14 19:22:49 -0500
commit5676c0b2d22883eed9c2faae1b3fba1679021873 (patch)
treeb0a13645c54e120511357720b744ecb88e03d95e /scrypted/scrypted-viewport.ts
parent6f79cfe533a6be154488ed61ab470712c10f06a3 (diff)
scrypted: use nativeId (not numeric id) for endpointManager.getInsecurePublicLocalEndpoint
Diffstat (limited to 'scrypted/scrypted-viewport.ts')
-rw-r--r--scrypted/scrypted-viewport.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/scrypted/scrypted-viewport.ts b/scrypted/scrypted-viewport.ts
index 8f9d136..e29100a 100644
--- a/scrypted/scrypted-viewport.ts
+++ b/scrypted/scrypted-viewport.ts
@@ -213,7 +213,11 @@ class ScryptedViewportProvider extends ScryptedDeviceBase
}
private async start() {
- const raw = await endpointManager.getInsecurePublicLocalEndpoint(this.id);
+ // endpointManager.getInsecurePublicLocalEndpoint() takes a nativeId
+ // (string) — passing this.id (numeric Scrypted DB ID) throws
+ // "invalid nativeId N". this.nativeId is the right key, and an
+ // omitted nativeId falls back to the plugin's own endpoint.
+ const raw = await endpointManager.getInsecurePublicLocalEndpoint(this.nativeId);
this.scryptedBase = raw.replace(/\/$/, "");
this.console.log(`Scrypted Viewport up. Callback URL base: ${this.scryptedBase}`);