MetaCubeX / mihomo

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

[Bug] #798

Closed jashok4 closed 11 months ago

jashok4 commented 11 months ago

Verify steps

Clash version

v1.16.0 darwin amd64 with go1.21.1

What OS are you seeing the problem on?

macOS

Clash config

mode: rule
mixed-port: 7890
allow-lan: true
log-level: debug
secret: ''
external-controller: 127.0.0.1:9090
dns:
  enable: true
  listen: :1053
  ipv6: true
  enhanced-mode: fake-ip
  fake-ip-range: 28.0.0.1/8
  fake-ip-filter:
  - '*'
  - +.lan
  - +.local
  default-nameserver:
  - 223.5.5.5
  nameserver:
  - tls://8.8.4.4#dns
  - tls://1.0.0.1#dns
  proxy-server-nameserver:
  - https://doh.pub/dns-query
  nameserver-policy:
    geosite:cn,private:
    - https://doh.pub/dns-query
    - https://dns.alidns.com/dns-query
tun:
  enable: false
  stack: system
  dns-hijack:
  - any:53
  auto-route: true
  auto-detect-interface: true
proxies:
- name: PROXY-HK
  type: vless
  server: ***
  port: ***
  uuid: ***
  servername: ***
  network: tcp
  tls: true
  reality-opts:
    public-key: ***
    short-id: ***
  client-fingerprint: randomized
  flow: xtls-rprx-vision
- name: PROXY-US
  type: vless
  server: ***
  port: 8443
  uuid: ***
  servername: ***
  network: tcp
  tls: true
  reality-opts:
    public-key: ***
  client-fingerprint: randomized
  flow: xtls-rprx-vision
- name: PROXY-JP
  type: vless
  server: ***
  port: 8443
  uuid: ***
  servername: ***
  network: tcp
  tls: true
  reality-opts:
    public-key: ***
  client-fingerprint: randomized
  flow: xtls-rprx-vision
rules:
- DOMAIN-SUFFIX,bilibili.com,DIRECT,tcp
- DOMAIN-SUFFIX,openai.com,PROXY-US
- DOMAIN-SUFFIX,bing.com,PROXY-JP
- DOMAIN-SUFFIX,github.com,PROXY-HK
- DOMAIN-SUFFIX,google.com,PROXY-HK
- DST-PORT,123/136/137-139,DIRECT,udp
- GEOSITE,category-ads-all,REJECT
- GEOSITE,icloud@cn,DIRECT
- GEOSITE,apple@cn,DIRECT
- GEOSITE,apple-cn,DIRECT
- GEOSITE,microsoft@cn,DIRECT
- GEOSITE,facebook,PROXY-HK
- GEOSITE,youtube,PROXY-HK
- GEOSITE,geolocation-cn,DIRECT
- GEOSITE,geolocation-!cn,PROXY-HK
- GEOIP,telegram,PROXY-HK,no-resolve
- GEOIP,private,DIRECT,no-resolve
- GEOIP,cn,DIRECT
- MATCH,PROXY-HK

Clash log

No response

Description

原 Clash Premium核心提供的API: /connections 获取连接信息的API,所返回的数据字段中可以正确返回processPath(进程路径)信息,ClashMeta似乎不能正确返回该字段信息。

jashok4 commented 11 months ago

这是原 Clash Premium核心返回的数据

截屏2023-10-15 22 56 53
xishang0128 commented 11 months ago

没有配置process规则,是不会获取进程的

jashok4 commented 11 months ago

没有配置process规则,是不会获取进程的

是的,测试了加上process规则配置就能获取了,感谢解答。