Skip to content

MacBridge 0.1.1

Choose a tag to compare

@habibtalib habibtalib released this 26 Nov 11:16
· 5 commits to main since this release

An audit release: security, stability and connection fixes. Mac and server should both be updated.

Security

  • A pairing link (QR code or macbridge:// link) that names another server now asks before switching, and the access token is never sent to a server it was not entered for. Tokens are kept per server.
  • Revoking a Mac also declines its pending request, and the host checks again before a session starts.
  • Clipboard text over 100 KB is refused on arrival; data channels opened by the other side are ignored.
  • Server: per-connection rate limit, slow-reader cutoff, total and per-IP connection caps checked before the WebSocket opens (HTTP 503), TRUST_PROXY / TRUST_PROXY_HOPS for counting clients behind a proxy, and unknown message types answered instead of closing the connection. Fixed a crash when a refused client reset its connection.
  • coturn refuses relaying to IPv6 private, loopback and link-local ranges and to the server's own address, and runs without its admin CLI.

Fixed

  • Screen capture no longer keeps running after a session that ended while capture was starting, and fast quality or display changes no longer leave a second capture running.
  • No more stuck keys or modifiers: input arriving after a session ends is dropped, the controller releases held keys when its window loses focus, and ⌘-shortcut key-ups are sent.
  • Pasting with ⌘V after sending the clipboard now pastes the new text.
  • Unplugging the shown display or closing the lid mid-session moves to another display (or a virtual one) instead of ending the session; a display that keeps failing ends it after three tries.
  • LidAwake: turning it on yourself is respected again (the pmset check always read "off").
  • The saved quality is applied when a session starts; on iPhone and iPad, changes during a session stay with that session.
  • Memory leaks of finished sessions and old server connections.

Improved

  • Connections recover by themselves: keepalive pings, reconnect on network change and wake, a shown pairing code survives a reconnect.
  • A call that gets no answer fails after 45 seconds with a reason; a Mac that refuses says why (not allowed, clocks too far apart, no Screen Recording permission).
  • A second copy of MacBridge with the same identity no longer fights the first: the older one stops and says so.
  • Mac: closing the window during a session asks first; the menu bar shows the session with Disconnect; a call waiting for the server is shown and can be cancelled.
  • iPhone and iPad: the screen stays on during a session; the app stays offline after you go offline on purpose; the camera-denied case is explained.
  • Server and access token in Settings are saved when you finish editing, not on every keystroke.
  • Device tiles keep their order while online status updates; accessibility labels for icon buttons and the key bar.
  • The stats log is capped at 5 MB and no longer records IP addresses.

Install or update

Download MacBridge-0.1.1.zip, unzip, replace MacBridge.app in /Applications, then once:

xattr -dr com.apple.quarantine /Applications/MacBridge.app

Self-hosted server: pull and restart (docker compose up -d --build in server/). New optional settings are in server/.env.example.

Full guide: README → Install on a Mac.

SHA-256: 0d93e770ddbde0cd2b6a653932dac614d40346e9fc0de312af579bcb546b5079