mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-26 15:07:39 +00:00
Fixes GitHub issue #326 where VibeTunnel's "Network" access mode was still binding to localhost instead of 0.0.0.0, preventing access over Tailscale and other networks. ## Root Cause Race condition in UserDefaults handling when changing access modes: - UI updates accessModeString via @AppStorage (writes to UserDefaults) - restartServerWithNewBindAddress() had redundant bindAddress assignment - Two concurrent UserDefaults writes to same key could cause stale config ## Changes **DashboardSettingsView.swift:** - Remove redundant `serverManager.bindAddress = accessMode.bindAddress` - @AppStorage already persists the access mode change - Add detailed logging for access mode changes **BunServer.swift:** - Add debug logging for server configuration (port + bindAddress) - Applies to both production and development servers - Helps diagnose future binding issues ## Testing Users can verify the fix by: 1. Change Access Mode in VibeTunnel Settings → Dashboard 2. Check with: `lsof -iTCP:4020 -sTCP:LISTEN` - Network mode: `TCP *:trap (LISTEN)` (0.0.0.0:4020) ✅ - Localhost mode: `TCP localhost:trap (LISTEN)` (127.0.0.1:4020) ✅ 3. View logs: `./scripts/vtlog.sh -s "bind\|configuration"` 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Assets.xcassets | ||
| Core | ||
| Extensions | ||
| Presentation | ||
| Utilities | ||
| Info.plist | ||
| Shared.xcconfig | ||
| sparkle-public-ed-key.txt | ||
| version.xcconfig | ||
| VibeTunnel-Mac.xctestplan | ||
| VibeTunnel.entitlements | ||
| VibeTunnelApp.swift | ||