MetaCubeX / mihomo

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

[Bug] 链式代理UDP流量不通 #552

Open soraneoumi opened 1 year ago

soraneoumi commented 1 year ago

Verify steps

Clash version

alpha-bd431fb

What OS are you seeing the problem on?

Windows

Clash config

port: 7890
socks-port: 7891
allow-lan: false
mode: rule
external-controller: 127.0.0.1:9090
geodata-mode: true
tcp-concurrent: true
ipv6: true

tun:
  enable: true
  stack: system
  dns-hijack:
    - 'any:53'
    - 'tcp://any:53'
  auto-route: true
  auto-detect-interface: true
  strict-route: true
  endpoint_independent_nat: true

dns:
  enable: true
  use-hosts: true
  ipv6: true
  prefer-h3: true
  enhanced-mode: redir-host
  fake-ip-range: 198.18.0.1/16
  listen: 0.0.0.0:8383
  nameserver:
    - 'tls://1.1.1.1#PROXY'
    - 'tls://[2606:4700:4700::1111]#PROXY'
    - 'https://1.1.1.1/dns-query#PROXY'
    - 'https://[2606:4700:4700::1111]/dns-query#PROXY'
  nameserver-policy:
    'geosite:cn': ['119.29.29.29','182.254.116.116']

proxies:
  - name: "softbank-ss"
    type: ss
    server: 000000
    port: 00000
    cipher: 2022-blake3-aes-128-gcm
    password: "000000"
    udp: true
  - name: "relay-ss"
    type: ss
    server: 000000
    port: 00000
    cipher: 2022-blake3-aes-128-gcm
    password: "000000"
    udp: true

proxy-groups:
  - name: PROXY
    type: select
    proxies:
      - relay-ss
      - relay
  - name: "relay"
    type: relay
    proxies:
      - relay-ss
      - softbank-ss

rules:
  - GEOSITE,apple@cn,DIRECT
  - GEOSITE,apple-cn,DIRECT
  - GEOSITE,microsoft@cn,DIRECT
  - GEOSITE,geolocation-cn,DIRECT
  - GEOIP,telegram,PROXY,no-resolve
  - GEOIP,private,DIRECT,no-resolve
  - GEOIP,LAN,DIRECT
  - GEOIP,CN,DIRECT
  - MATCH,PROXY

Clash log

No response

Description

v1.14.3 版本正常,v1.14.4 以及最新 alpha 中使用链式代理后,无法传输 UDP 流量 表现为:WebRTC 不通、将出口节点替换为TUIC服务器之后不经过任何流量等等

Innersider commented 1 year ago

我也有相同的问题,表现为访问https://networktest.twilio.com/时,Relay链式代理的UDP测试不通。在Clash Verge的日志中错误如下:

WARNING [UDP] dial 漏网之鱼 (match Match/) 198.18.0.1:60784(chrome.exe) --> global.turn.twilio.com:443 error: missing port in address

已测试在v1.14.3版本中工作正常。

soraneoumi commented 1 year ago

这个issue在最新版本的alpha中已经工作正常了,不过还有一点毛病,导致无法访问只有AAAA记录的网站