MetaCubeX / mihomo

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

谁有vmess+ws+tls+伪装域名的配置例子?不通啊 #115

Open joshatt opened 1 year ago

joshatt commented 1 year ago
proxies:
  # vmess
  # cipher支持 auto/aes-128-gcm/chacha20-poly1305/none
  - name: opentunnelus
    type: vmess
    server: myserver
    port: 443
    uuid: a40d34c6-b77c-4648-9210-3e8d2f4226b5
    alterId: 16
    cipher: auto
    # udp: true
    tls: true
    skip-cert-verify: true
    # servername: example.com # priority over wss host
    network: ws
    ws-opts:
      path: /mypath
      headers:
        Host: myfakehost
    #   max-early-data: 2048
    #   early-data-header-name: Sec-WebSocket-Protocol

其他协议我试通了, 就是这个vmess不通,求指点

layou233 commented 1 year ago

@joshatt 为什么还有alterId这东西

joshatt commented 1 year ago

@joshatt 为什么还有alterId这东西

不知道啊, 我是从v2rayN客户端照抄的

joshatt commented 1 year ago

@joshatt 为什么还有alterId这东西

试了一下,注释掉还不行呢,说缺

layou233 commented 1 year ago

@joshatt 试试设置成0 https://www.v2fly.org/config/protocols/vmess.html#outboundconfigurationobject alterId现在应该都为0了

joshatt commented 1 year ago

@joshatt 试试设置成0 https://www.v2fly.org/config/protocols/vmess.html#outboundconfigurationobject alterId现在应该都为0了

谢谢。 试了一下,还是不通

eleven702 commented 1 year ago

@joshatt 试试设置成0 https://www.v2fly.org/config/protocols/vmess.html#outboundconfigurationobject alterId现在应该都为0了

谢谢。 试了一下,还是不通

请问解决了吗?我也是不通,请教解决方法,谢谢

shinyypig commented 11 months ago
- name: "Vmess"
  type: vmess
  server: "xxx.xx"
  port: 443
  uuid: xxxx
  alterId: 0
  cipher: auto
  udp: true
  skip-cert-verify: true
  tls: true
  servername: "xxx.xx"
  network: ws
  ws-opts:
    path: "/xxxx"
    headers:
      Host: xxx.xx

这是我的配置,可以参考一下