MetaCubeX / mihomo

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

[Bug] TProxy server error since upgrade to 1.8.1 #1027

Closed iMxSeraph closed 7 months ago

iMxSeraph commented 7 months ago

Verify steps

Mihomo version

1.8.1

What OS are you seeing the problem on?

Linux

Mihomo config

mixed-port: 7890
tproxy-port: 7893
allow-lan: true
bind-address: '192.168.1.2'
mode: rule
log-level: info
ipv6: true
external-controller: 192.168.1.2:9090

rules:
  - GEOIP,CN,DIRECT
  - MATCH,PROXY

dns:
  enable: true
  listen: 192.168.1.2:53
  ipv6: true
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.0/16
  nameserver:
    - 192.168.1.3
  fallback:
    - https://1.1.1.1/dns-query
    - https://8.8.8.8/dns-query
    - https://45.11.45.11/dns-query

proxies:
  - name: yun
    type: http
    server: 192.168.1.1
    port: 7890

proxy-groups:
  - name: PROXY
    type: select
    proxies:
      - yun

Mihomo log

INFO[2024-02-06T16:58:23.555388451+08:00] Start initial configuration in progress      
INFO[2024-02-06T16:58:23.555592948+08:00] Geodata Loader mode: memconservative         
INFO[2024-02-06T16:58:23.555610996+08:00] Geosite Matcher implementation: succinct     
INFO[2024-02-06T16:58:23.573838419+08:00] Initial configuration complete, total time: 18ms 
INFO[2024-02-06T16:58:23.575627358+08:00] RESTful API listening at: 192.168.60.2:9090  
INFO[2024-02-06T16:58:23.63960607+08:00] Sniffer is closed                            
INFO[2024-02-06T16:58:23.639786475+08:00] DNS server listening at: 192.168.60.2:53     
ERRO[2024-02-06T16:58:23.639870333+08:00] Start TProxy server error: protocol not available 
INFO[2024-02-06T16:58:23.639963556+08:00] Mixed(http+socks) proxy listening at: 192.168.60.2:7890 
INFO[2024-02-06T16:58:23.643495057+08:00] Start initial Compatible provider PROXY      
INFO[2024-02-06T16:58:23.643564792+08:00] Start initial Compatible provider default

Description

Based on the same config file, 1.8.0 TProxy could work. But under 1.8.1, the log shows TProxy server start error. "Start TProxy server error: protocol not available "

I'm using mihomo-linux-amd64-compatible-v1.18.1 on Debian 12. (Linux gate 6.1.0-16-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.67-1 (2023-12-12) x86_64 GNU/Linux)

Same issue happened on the latest alpha version.

Lovest20018 commented 7 months ago

同样的问题。最新alpha也一样。

wwqgtxx commented 7 months ago

试试 https://github.com/MetaCubeX/mihomo/commit/0c384b1e4225709d1dcec61db37dc8af0388bfa3

Lovest20018 commented 7 months ago

可以了。

iMxSeraph commented 7 months ago

It works. Thanks a lot :)