MetaCubeX / mihomo

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

[Bug] unable to use mihomo's proxy listener ports via IPv6 Link-Local address #1657

Open Fearyncess opened 2 hours ago

Fearyncess commented 2 hours ago

Verify steps

Operating System

Linux

System Version

6.10.10-aosc-main

Mihomo Version

Mihomo Meta alpha-de19f92 linux amd64 with go1.23.2 Thu Nov 14 02:09:03 UTC 2024 Use tags: with_gvisor

Configuration File

log-level: debug

mixed-port: 9998
allow-lan: true

mode: rule
ipv6: true

listeners:
  - name: socks-in
    type: socks
    port: 9999
    listen: "::"
    udp: true

rules:
  - 'MATCH,DIRECT'

Description

the core's proxy listener ports can not be connected via IPv6 Link-Local address, even firewall disabled.

however, it works well with this use-case if use the core version 1.18.8.

Reproduction Steps

Logs

INFO[2024-11-17T17:01:10.169757405+08:00] Start initial configuration in progress
INFO[2024-11-17T17:01:10.169816407+08:00] Geodata Loader mode: memconservative
INFO[2024-11-17T17:01:10.169823528+08:00] Geosite Matcher implementation: succinct
INFO[2024-11-17T17:01:10.170025904+08:00] Initial configuration complete, total time: 0ms
INFO[2024-11-17T17:01:10.178119813+08:00] Sniffer is closed
INFO[2024-11-17T17:01:10.178252027+08:00] SOCKS[socks-in] proxy listening at: [::]:9999
INFO[2024-11-17T17:01:10.178288379+08:00] Mixed(http+socks) proxy listening at: [::]:9998
WARN[2024-11-17T17:01:11.137208602+08:00] [CacheFile] can't open cache file: timeout
INFO[2024-11-17T17:01:11.1380559+08:00] Start initial Compatible provider default
Fearyncess commented 2 hours ago

i found that seems cd2d1c6bb0e88c8833fed7e335f3874f78ced4d6 causes this bug (or regression?) after bisects.