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

关于dns泄露的问题 #1812

Closed
fyhong opened this issue Dec 12, 2024 · 4 comments
Closed

关于dns泄露的问题 #1812

fyhong opened this issue Dec 12, 2024 · 4 comments

Comments

@fyhong
Copy link

fyhong commented Dec 12, 2024

如果我用命令行直接运行
./ssrust --dns 210.220.163.82 --outbound-bind-interface ppp0 -k test -m chacha20-ietf-poly1305 -s 0.0.0.0:40001
我到https://surfshark.com/zh/dns-leak-test检测dns,
QQ截图20241212131945
是上面的结果

但如果我用以下的配置文件,再用./ssrust -c test.json 来运行,再检测dns,就会跳回vps原来的dns.这是什么原因
{
"servers": [
{"server": "0.0.0.0", "server_port": 40001, "dns_cache_size": 0, "mode": "tcp_and_udp", "password": "test", "method": "chacha20-ietf-poly1305", "dns": "210.220.163.82", "outbound_bind_interface": "ppp0" }
]
}
222222

@zonyitoo
Copy link
Collaborator

There is no dns configuration key for server.

@fyhong
Copy link
Author

fyhong commented Dec 24, 2024

那为什么我直接用命令行它是生效的?

@zonyitoo
Copy link
Collaborator

Because there is a --dns command line option, but no dns in configuration for server.

@fyhong
Copy link
Author

fyhong commented Dec 31, 2024

但是我这份配置里面是有配置dns的
{
"servers": [
{"server": "0.0.0.0", "server_port": 40001, "dns_cache_size": 0, "mode": "tcp_and_udp", "password": "test", "method": "chacha20-ietf-poly1305", "dns": "210.220.163.82", "outbound_bind_interface": "ppp0" }
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants