MetaCubeX / mihomo

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

关于 vless vision alpn #790

Closed AsenHu closed 11 months ago

AsenHu commented 11 months ago

Verify steps

Description

image

ClashMeta vless 不支持 alpn。当你像 tuic / hysteria / trojan 那样像模像样的写上 alpn: [ "clashMetaTransferUltraProMax/15" ] 时,ClashMeta依旧只会发送 h2http/1.1

Possible Solution

No response

xishang0128 commented 11 months ago

@AsenHu https://github.com/MetaCubeX/Clash.Meta/blob/129283066fbf3bbb217833fff65ff5f9d875ee16/adapter/outbound/vless.go#L61 vless支持配置alpn的

AsenHu commented 11 months ago

@AsenHu https://github.com/MetaCubeX/Clash.Meta/blob/129283066fbf3bbb217833fff65ff5f9d875ee16/adapter/outbound/vless.go#L61 vless支持配置alpn的

阿哲,可是我写了 alpn,但 singbox 日志里还是写只收到 h2 和 http/1.1

proxies:
  - name: "TW 台湾 VISION"
    type: vless
    server: www.gov.cn
    port: 443
    ip-version: ipv6-prefer
    uuid: uuid
    network: tcp
    tls: true
    udp: true
    flow: xtls-rprx-vision 
    client-fingerprint: firefox
    xudp: true
    skip-cert-verify: false
    servername: www.gov.cn
    alpn:
      - "supertransfer/3"
Larvan2 commented 11 months ago

使用utls后会由utls设置alpn

AsenHu commented 11 months ago

使用utls后会由utls设置alpn

感谢大佬解答