Closed ericclose closed 8 months ago
Looking at the video you posted, the 2nd request after you restart the new version didn't seem to come through.
Could you verify it with something like curl directly?
Looking at the video you posted, the 2nd request after you restart the new version didn't seem to come through.
Could you verify it with something like curl directly?
$ curl -v -x "http://127.0.0.1:7890" https://www.google.com/search?q=test
* Trying 127.0.0.1:7890...
* Connected to 127.0.0.1 (127.0.0.1) port 7890
* CONNECT tunnel: HTTP/1.1 negotiated
* allocate connect buffer
* Establish HTTP proxy tunnel to www.google.com:443
> CONNECT www.google.com:443 HTTP/1.1
> Host: www.google.com:443
> User-Agent: curl/8.4.0
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 400 Bad Request
< content-length: 39
< date: Fri, 29 Dec 2023 06:20:34 GMT
<
* CONNECT tunnel failed, response 400
* Closing connection
curl: (56) CONNECT tunnel failed, response 400
Could you share you config to dev@watfaq.com plz
fixed in latest release
fixed in latest release
There is a new issue in v0.1.12.
error: TLS handshake failed: cert verification failed - unable to get local issuer certificate [CERTIFICATE_VERIFY_FAILED]
curl: (35) schannel: failed to receive handshake, SSL/TLS connection failed
0.1.12 also updated tls library. Seems to be failing on Windows.
Let me fix it
Could you see if 0.1.13 is working
Could you see if 0.1.13 is working
Yes, now v0.1.13 works and the proxy is working right now.
However, an error message was encountered on Windows and there was no INFO level log output such like ... source: 192.168.233.1:53726, destination: Domain("www.google.com", 443) ...
at all
ERROR clash_lib\src\lib.rs:157: panic hook: PanicInfo { payload: Any { .. }, message: Some(called
Result::unwrap()on an
Errvalue: Os { code: 10048, kind: AddrInUse, message: "Only one usage of each socket address (protocol/network address/port) is normally permitted." }), location: Location { file: "clash_lib\\src\\app\\api\\mod.rs", line: 99, col: 76 }, can_unwind: true, force_no_backtrace: false }
I tried clash-rs on Linux without the same error message, as well as the logs output is normal
do you have another core listening :9090 ?
Looks like your request is handled by another instance
do you have another core listening :9090 ?
Yes. I noticed that Clash Nyanpasu quit but its core was still running in the background, and I killed it.
D:\Downloads>netstat -aon|findstr "9090"
TCP 127.0.0.1:9090 0.0.0.0:0 LISTENING 15184
D:\Downloads>tasklist | findstr "15184"
mihomo.exe 15184 Console 9 39,688 K
Clash-rs v0.1.13 works fine and the log is normal now.
Thanks for your development work!
Browser outputs when using v0.1.11:
Screencast:
https://github.com/Watfaq/clash-rs/assets/34526560/55517de0-24d9-4983-93ab-3969c4570288
If you need me to provide the configuration, please let me know your email address and I will send it via email.