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

macos使用tun模式增加自动修改dns的功能 #90

Closed
xingyue52077 opened this issue Dec 7, 2023 · 5 comments
Closed

macos使用tun模式增加自动修改dns的功能 #90

xingyue52077 opened this issue Dec 7, 2023 · 5 comments
Labels
old Old issue closed uniformly

Comments

@xingyue52077
Copy link

macos使用tun模式,需要手动设置dns 为192.18.0.2,希望可以添加自动功能,在原仓库未关闭前已有开发者 贡献了pr 但没有merge,希望可以添加此功能。

原仓库pr:
zzzgydi/clash-verge#850

@xingyue52077 xingyue52077 added the enhancement New feature or request label Dec 7, 2023
@wonfen
Copy link
Member

wonfen commented Dec 8, 2023

不懂为何要手动设置dns?

@ericxie008
Copy link

不懂为何要手动设置dns?
因为Macos 下使用tun 模式不起作用, 上不了网. 需要手动设置, 所以最好在gui里面集成这个 命令networksetup -setdnsservers Wi-Fi 198.18.0.2

@wonfen
Copy link
Member

wonfen commented Dec 13, 2023

tun模式需要授权,看下FAQ: #125

@wonfen wonfen closed this as completed Dec 13, 2023
@JACK-THINK
Copy link

tun模式需要授权,看下FAQ: #125

这Bug不是授权能解决的。授权仅修改了clash内核的权限,并不能自动修改系统DNS使其指向Fake-ip,这才是导致MacOS下TUN模式不可用的根本原因。 @xingyue52077 的解决方法是正确的,请添加此功能。

@erlangzhang
Copy link

没有开tun也遇到了ip无法解析的问题,求解

@MystiPanda MystiPanda added old Old issue closed uniformly and removed enhancement New feature or request labels Mar 20, 2024
@clash-verge-rev clash-verge-rev locked and limited conversation to collaborators Mar 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
old Old issue closed uniformly
Projects
None yet
Development

No branches or pull requests

6 participants