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

Fail to run when hosts are modified #7

Open
CosmosAtlas opened this issue Feb 18, 2020 · 2 comments
Open

Fail to run when hosts are modified #7

CosmosAtlas opened this issue Feb 18, 2020 · 2 comments

Comments

@CosmosAtlas
Copy link
Contributor

ncmt fail to execute with the following error message.

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Request, url: "https://music.163.com/", source: hyper::Error(Connect, Ssl(Error { code: ErrorCode(1), cause: Some(Ssl(ErrorStack([Error { code: 337047686, library: "SSL routines", function: "tls_process_server_certificate", reason: "certificate verify failed", file: "ssl/statem/statem_clnt.c", line: 1913 }]))) }, X509VerifyResult { code: 62, error: "Hostname mismatch" })) }', src/libcore/result.rs:1165:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

Caused by host file being edited to redirect music.163.com
Possible fix: don't change hosts (not application for people overseas)

Also, when trying to access ip limited songs when overseas ncmt will also crash.

@betta-cyber
Copy link
Owner

Ok, It seems that certificate verify failed when connect to music.163.com. maybe you should generate a cert and use it. https://github.com/Yufeikang/abroad_netease_muisc . I will test the condition for overseas and fix it.

And ip limited songs will get a message not a crash

@CosmosAtlas
Copy link
Contributor Author

For me, I'm using those free DNS out there. So I have no control over the server.

Anyway, thanks for taking a look on this! I'll wait patiently until a new patch on this. :-)

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