Skip to content

[Bug] 更新订阅连接未标识route_mark #2455

@ThermalEng

Description

@ThermalEng

Verify steps

  • I have read the documentation and understand the meaning of all the configuration items I have written, rather than just piling up seemingly useful options or default values.
  • I have carefully reviewed the documentation and have not resolved the issue.
  • I have searched the Issue Tracker for the issue I want to raise and did not find it.
  • I am a non-Chinese user.
  • I have tested with the latest Alpha branch version, and the issue still persists.
  • I have provided the server and client configuration files and processes that can reproduce the issue locally, rather than a sanitized complex client configuration file.
  • I provided the simplest configuration that can be used to reproduce the errors in my report, rather than relying on remote servers or piling on a lot of unnecessary configurations for reproduction.
  • I have provided complete logs, rather than just the parts I think are useful out of confidence in my own intelligence.
  • I have directly reproduced the error using the Mihomo command-line program, rather than using other tools or scripts.

Operating System

Linux

System Version

openwrt

Mihomo Version

latest

Configuration File

proxy-providers:
  clashcloud:
    type: http
    path: "./proxy_provider/clashcloud.yaml"
    url: ...
    interval: 604800
    proxy: DIRECT
    health-check:
      enable: true
      url: https://cp.cloudflare.com/generate_204
      interval: 900
unified-delay: true
keep-alive-idle: 600
keep-alive-interval: 15
profile:
  store-selected: true
  store-fake-ip: true
proxy-groups:
  - name: "🚀 手动选择"
    type: select
    disable-udp: false
    use:
      - clashcloud
  - name: "🇭🇰 香港节点"
    type: smart
    use:
    - clashcloud
    disable-udp: false
    url: https://cp.cloudflare.com/generate_204
    interval: '300'
    filter: 香港
    strategy: sticky-sessions
    uselightgbm: true
    collectdata: false
  - name: "🇺🇸 美国节点 "
    type: smart
    use:
    - clashcloud
    disable-udp: false
    url: https://cp.cloudflare.com/generate_204
    interval: '300'
    strategy: sticky-sessions
    uselightgbm: true
    collectdata: false
    filter: 美国
  - name: "🇰🇷 韩国节点"
    type: url-test
    disable-udp: false
    use:
      - clashcloud
    url: https://cp.cloudflare.com/generate_204
    interval: 300
    tolerance: 100
    filter: 韩国
  - name: "🇸🇬 新加坡节点"
    type: url-test
    disable-udp: false
    use:
      - clashcloud
    url: https://cp.cloudflare.com/generate_204
    interval: 300
    tolerance: 100
    filter: 新加坡
  - name: "🇯🇵 日本节点"
    type: url-test
    disable-udp: false
    use:
      - clashcloud
    url: https://cp.cloudflare.com/generate_204
    interval: 300
    tolerance: 100
    filter: 日本
  - name: "📞 WiFiCall"
    type: url-test
    use:
    - clashcloud
    disable-udp: false
    url: https://cp.cloudflare.com/generate_204
    interval: '300'
    filter: 英国
    tolerance: 100
rules:
  - "MATCH, 🇭🇰 香港节点"
external-ui: ui
external-ui-name: zashboard
external-ui-url: https://github.com/Zephyruso/zashboard/releases/latest/download/dist-firasans-only.zip
external-controller: '[::]:9091'
secret: "877783"
routing-mark: 59
dns:
  enable: true
  ipv6: true
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  listen: 0.0.0.0:7874
  nameserver:
  - https://dns.cooluc.com/dns-query
  - https://dns.flymc.cc/dns-query
  proxy-server-nameserver:
  - https://dns.cooluc.com/dns-query
  - https://dns.flymc.cc/dns-query
  default-nameserver:
  - udp://119.6.6.6
  prefer-h3: false
  use-system-hosts: false
  use-hosts: false
listeners:
  - name: socks5-in-0
    type: socks
    port: 10030
    listen: 127.0.0.1
    proxy: "🚀 手动选择"
  - name: socks5-in-1
    type: socks
    port: 10031
    listen: 127.0.0.1
    proxy: "🇭🇰 香港节点"
  - name: socks5-in-2
    type: socks
    port: 10032
    listen: 127.0.0.1
    proxy: "🇺🇸 美国节点 "
  - name: socks5-in-3
    type: socks
    port: 10033
    listen: 127.0.0.1
    proxy: "🇰🇷 韩国节点"
  - name: socks5-in-4
    type: socks
    port: 10034
    listen: 127.0.0.1
    proxy: "🇯🇵 日本节点"
  - name: socks5-in-5
    type: socks
    port: 10035
    listen: 127.0.0.1
    proxy: "🇸🇬 新加坡节点"
  - name: socks5-in-6
    type: socks
    port: 10036
    listen: 127.0.0.1
    proxy: "📞 WiFiCall"

Description

设置了代理订阅出口是DIRECT, 全局routing-mark,但是更新代理的连接未标识routing-mark,从而被防火墙捕获,导致更新失败。

Reproduction Steps

使用其他代理软件结合mihomo裸核运行,用mihomo连接代理,并设置routing-mark,在其他代理软件中放行。网络连接正常,但无法更新订阅。关闭其他代理软件后可正常更新代理,推测为代理更新的连接未标识routing-mark。

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions