Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Sniffer 冗余误解日志 #1236

Closed
7 tasks done
liangyi9812 opened this issue Apr 30, 2024 · 1 comment
Closed
7 tasks done

[Bug] Sniffer 冗余误解日志 #1236

liangyi9812 opened this issue Apr 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@liangyi9812
Copy link

liangyi9812 commented Apr 30, 2024

Verify steps

  • 我已经阅读了 文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我未仔细看过 文档 并无法自行解决问题
  • 我未在 Issue Tracker 中寻找过我要提出的问题
  • 我已经使用最新的 Alpha 分支版本测试过,问题依旧存在
  • 我提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • 我提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • 我提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。

操作系统

OpenBSD/FreeBSD

系统版本

Mac

Mihomo 版本

latest

配置文件

描述

开启 Sniffer,无论是否 overrideDest 都会输出 replace domain 日志
https://github.com/MetaCubeX/mihomo/blob/107e3e763009668b174a6ef4d36a4c06e3169930/component/sniffer/dispatcher.go#L120C1-L124C23
代码里注释说因为下面会修改值所以提前打log,但这种行为会造成看debug日志排查时候的误解。
希望有空时顺手改了,非常感谢~

重现方式

开启 Sniffer,与 override-destination 无关

日志

[DEBUG] [Sniffer] Sniff tcp [192.168.xx.xx:50676]-->[api.segment.io:443] success, replace domain [api.segment.io]-->[api.segment.io]
@liangyi9812 liangyi9812 added the bug Something isn't working label Apr 30, 2024
@xishang0128
Copy link

改了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants