MetaCubeX / mihomo

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

[Bug] 使用trojan时有告警 #570

Open suikaremilia opened 1 year ago

suikaremilia commented 1 year ago

Verify steps

Clash version

Meta v1.14.4 windows amd64 以及alpha-72a00cb windows amd64

What OS are you seeing the problem on?

Windows, Linux

Clash config

proxies:
  - name: trojan
    type: trojan
    server: server
    port: 443
    password: xxx
    udp: true
    sni: server
    alpn:
      - h2
      - http/1.1
    skip-cert-verify: false

Clash log

WARNING
[TCP] dial PROXY (match Match/) 127.0.0.1:65053 --> 91.108.56.176:80 error: server:443 connect error: remote error: tls: no application protocol

Description

使用trojan时会收到大量clash log的告警,测速也显示error,但实际不影响访问。 相同的配置使用P内核则无告警

H1JK commented 1 year ago

Have you correctly configured Trojan server ALPN settings? If not, have a try.

If you can't access server configurations, remove your client ALPN settings or try uTLS.