TUN mode incompatible with Node.js/Bun applications (Claude Code hangs on connectivity check)
### Application
Outline Client
### Describe the bug
When Outline is connected in TUN mode (outline-tap0), Node.js/Bun-based applications cannot establish connections through the TUN interface. The TCP handshake succeeds but TLS never completes, causing apps to hang indefinitely waiting for a response.
### Steps to reproduce
Connect to Outline VPN on Windows 11
Run any Node.js or Bun application that makes HTTPS requests
The application hangs — TCP connections show as ESTABLISHED in netstat but no data is exchanged
### What did you expect to happen?
All system traffic should be routed through the TUN interface regardless of the runtime/HTTP stack used by the application.
### What actually happened?
Claude Code (which uses the Bun runtime internally) does not route traffic through Outline's TUN interface (`outline-tap0`) correctly. TCP connections to Anthropic endpoints appear as ESTABLISHED in `netstat`, but no data is actually exchanged — the app hangs indefinitely on `Checking connectivity...` with no error message and no timeout.
The issue is specific to TUN mode. When a local HTTP proxy is explicitly set via `HTTPS_PROXY=http://127.0.0.1:1080` (using shadowsocks-windows as a bridge), Claude Code works immediately. This confirms that Outline's TUN interface does not properly handle traffic from the Bun/Node.js network stack.
Other VPN clients that expose a local proxy port (e.g. Happ) work without any workaround.
### Outline Version
1.19.0 (490240)
### What operation system are you using?
Windows
### Operating System Version
Windows 11
### Screenshots and Videos
_No response_
0 条评论