tailscale / tailscale/tailscale

Didn't work with mihomo/clash's tun mode

Open
#18,351 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
36.5k
Forks
3.2k
Avg merge
1d 23h
Merged PRs (30d)
132

Description

### What is the issue?

Tailscale derp would connect fail after [mihomo](https://github.com/MetaCubeX/mihomo)'s tun mode turn on.
Image

I found some problem after debugged tailscale and mihomo source.

1. after mihomo's tun turn on, all tcp handshake to derp node will success, in derp/derphttp/derphttp_client.go#dialNode
2. but some node will tls handshake fail, in derp/derphttp/derphttp_client.go#connect tlsConn.Handshake()

The derp node i tls handshake failed is 172.237.28.183:443 (derp7h.tailscale.com)

May be, we need try next derp node if tls handshake fail

### Steps to reproduce

_No response_

### Are there any recent changes that introduced the issue?

_No response_

### OS

Windows

### OS version

26200.7462

### Tailscale version

1.92.5

### Other software

_No response_

### Bug report

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.