Skip to content

v0.9.6: fall back to a fresh tunnel

Choose a tag to compare

@gnacho gnacho released this 05 Nov 16:57
· 123 commits to main since this release

An opening no longer fails just because a stream was running.

Fixed

  • With a video session alive the API asked it to open the door and returned
    whatever it answered. A stale session made /open fail even though a fresh
    tunnel would have worked. Now the socket is used only when it succeeds; on
    failure the log says so and the direct path runs.
  • Openings done through the video session are recorded, so /status shows
    them in last_open like LAN and remote ones.

Verified

  • go build, go vet, gofmt clean, full suite green.
  • New test TestOpenFallsBackWhenVideoSessionFails: a control server whose
    unlock fails plus a direct double, the request must return 200 having used
    the direct path.

Not verified

  • The fallback against the real bell needs a stream held open while the tunnel
    has gone stale, so it still waits for a waking window.