217 字
1 分钟
Tailscale 和 Clash Meta (mihomo) 共存
2024-11-24
无标签

Tailscale 和 Clash Meta (mihomo) 共存#

前言#

我在 Windows 环境下的 Tailscale 一直有一个问题,如果 Clash Meta 以系统代理启动的时候 Tailscale 会一直卡登录,在终端模式下也会报错

fetching latest tailscale version: Get "https://pkgs.tailscale.com/stable/?mode=json&os=windows": read tcp 192.168.3.5:9594->199.38.181.239:443: wsarecv: An existing connection was forcibly closed by the remote host.

但是在 TUN 模式下是正常使用的。

解决方案#

查找了一下 Tailscale 的文档,文档中指出可以自定义 Environment variables,方法很简单

  1. 在 Tailscale 的程序目录(C:\ProgramData\Tailscale)中创建tailscaled-env.txt文件。
  2. 在tailscaled-env.txt文件中,您可以设置环境变量。例如,更改默认的UDP侦听端口)。
Terminal window
https_proxy=http://127.0.0.1:7897
http_proxy=http://127.0.0.1:7897
all_proxy=socks5://127.0.0.1:7897
  1. 保存文件并运行net stop Tailscalenet start Tailscale以应用更改。

其他问题#

不知道会不会影响打洞,但是我目前用下来是可以的,如果您有更好的办法,欢迎指出

Tailscale 和 Clash Meta (mihomo) 共存
https://blog.hexg.uk/posts/tailscale-and-clash-coexist/
作者
仙姑本咕
发布于
2024-11-24
许可协议
CC BY-NC-SA 4.0