v0.9.5: bubble for Android 0.7.8 — the relay is just a relay server: its address is a setting, and deploy-relay.sh reads scripts/relay.env

This commit is contained in:
2026-11-16 11:19:54 -08:00
parent 8b3cfdca24
commit 6f365df087
24 changed files with 103 additions and 93 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
// The relay against the dev app on a plugged-in Rabbit (DEVICE=1 npm test --
// test/relay.device.test.ts). A throwaway local relay, reached from the Rabbit
// through adb reverse; the dev app's made-up data (tools/push_sandbox.py).
// Never the real app, never jai.
// Never the real app, never the real relay server.
import { execFileSync, spawn, type ChildProcess } from 'node:child_process'
import fs from 'node:fs'
import net from 'node:net'
+2 -2
View File
@@ -73,7 +73,7 @@ describe('relay', () => {
})
it('only sends the token to tailscale or https', () => {
expect(checkUrl('http://100.69.139.40:8080/')).toBe('http://100.69.139.40:8080')
expect(checkUrl('http://100.101.102.103:8080/')).toBe('http://100.101.102.103:8080')
expect(() => checkUrl('http://example.com')).toThrow()
expect(checkUrl('https://example.com')).toBe('https://example.com')
})
@@ -143,7 +143,7 @@ describe('relay', () => {
const ref = await media.resolve(oldMms, 0)
expect(fs.readFileSync(media.filePath(ref!.file!)).toString()).toBe('fake png')
// Picked up = gone from jai.
// Picked up = gone from the relay server.
expect(await rabbit(key)).toEqual([])
engine.stop()
db.close()