A server can now be added by pasting an openchamber://connect pairing link. The one-time secret is redeemed over the first reachable candidate (direct addresses first, then the relay), and the device token is stored with the connection, so later launches reconnect without the link. The relay candidate carries the relay WebSocket URL, the host's routing id and its P-256 public key. The new transport opens one encrypted tunnel to the relay: P-256 ECDH + HKDF-SHA256 derive one AES-256-GCM key per direction; frames carry a version, a 12-byte IV and the GCM tag; a small mux carries HTTP, SSE and WebSocket sub-streams with fragmentation and ping/pong. Every request and the terminal socket ride it; WebSocket upgrades first mint the short-lived oc_url_token over the tunnel, since upgrades cannot send headers. Only the host's legacy path is negotiated (no batching, downstream flow control or body gzip). Pairing while connected switches servers like picking one in the list, which exposed and fixes a ChatScreen crash when app.chat is cleared during the switch. 0.4.4 (404).
30 lines
545 B
YAML
30 lines
545 B
YAML
name: openchamber
|
|
description: "A lightweight OpenChamber client for phones."
|
|
publish_to: 'none'
|
|
|
|
version: 0.4.4+404
|
|
|
|
environment:
|
|
sdk: ^3.14.0
|
|
|
|
dependencies:
|
|
flutter:
|
|
sdk: flutter
|
|
cupertino_icons: ^1.0.8
|
|
shared_preferences: ^2.3.0
|
|
flutter_secure_storage: ^11.2.0
|
|
file_picker: ^13.0.0
|
|
gpt_markdown: ^1.4.0
|
|
socks5_proxy: ^2.1.2
|
|
xterm: ^4.0.0
|
|
flutter_slidable: ^5.2.0
|
|
archive: ^3.6.1
|
|
pointycastle: ^4.0.0
|
|
dev_dependencies:
|
|
flutter_test:
|
|
sdk: flutter
|
|
flutter_lints: ^6.0.0
|
|
|
|
flutter:
|
|
uses-material-design: true
|