diff options
| author | Luke Hoersten <[email protected]> | 2026-06-14 19:22:49 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-06-14 19:22:49 -0500 |
| commit | 5676c0b2d22883eed9c2faae1b3fba1679021873 (patch) | |
| tree | b0a13645c54e120511357720b744ecb88e03d95e /scrypted | |
| parent | 6f79cfe533a6be154488ed61ab470712c10f06a3 (diff) | |
scrypted: use nativeId (not numeric id) for endpointManager.getInsecurePublicLocalEndpoint
Diffstat (limited to 'scrypted')
| -rw-r--r-- | scrypted/scrypted-viewport.ts | 6 |
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}`); |
