MetaCubeX / mihomo

A simple Python Pydantic model for Honkai: Star Rail parsed data from the Mihomo API.
https://wiki.metacubex.one
MIT License
16.53k stars 2.65k forks source link

[Bug] 当启用Tun模式后,无法连接Hysteria2节点。 #1221

Closed QijYooRytowYum closed 6 months ago

QijYooRytowYum commented 6 months ago

Verify steps

Mihomo version

Mihomo Meta v1.18.3 windows amd64 with go1.20.14 Fri Mar 29 11:57:58 UTC 2024 Use tags: with_gvisor

What OS are you seeing the problem on?

Windows

Mihomo config

mixed-port: 7897
socks-port: 7898
port: 7899
log-level: debug
allow-lan: false
mode: global
external-controller: 127.0.0.1:9097
secret: password
tun:
  stack: gvisor
  device: Meta
  auto-route: true
  auto-detect-interface: true
  dns-hijack:
  - any:53
  strict-route: false
  mtu: 1500
dns:
    enable: true
    ipv6: false
    default-nameserver: [223.5.5.5, 119.29.29.29]
    enhanced-mode: fake-ip
    fake-ip-range: 198.18.0.1/16
    use-hosts: true
    nameserver: ['https://doh.pub/dns-query', 'https://dns.alidns.com/dns-query']
    fallback: ['https://doh.dns.sb/dns-query', 'https://dns.cloudflare.com/dns-query', 'https://dns.twnic.tw/dns-query', 'tls://8.8.4.4:853']
    fallback-filter: { geoip: true, ipcidr: [240.0.0.0/4, 0.0.0.0/32] }

#以下省略机场分流规则和节点信息。

Mihomo log

#我无法确定这到底是Mihomo Core的日志信息还是Clash verge rev的日志信息,很抱歉。
2024-04-26 03:38:57 ERROR - failed to connect to the Clash Verge Service

Description

其他常见协议的节点在Tun模式下均可正常连接,不受影响。 使用Clash verge rev作为GUI程序。

xishang0128 commented 6 months ago

@QijYooRytowYum 如果不确定,请直接运行内核,而不是继续使用gui客户端